Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: couchbaselabs/couchbase-glimpse
base: 7428548b70
...
head fork: couchbaselabs/couchbase-glimpse
compare: 2f984ee8ff
  • 3 commits
  • 360 files changed
  • 0 commit comments
  • 1 contributor
Showing with 561 additions and 1,078 deletions.
  1. +4 −2 src/{CouchbaseGlimpseWeb → }/Couchbase.Glimpse/Couchbase.Glimpse.csproj
  2. +15 −0 src/Couchbase.Glimpse/Couchbase.Glimpse.nuspec
  3. BIN  src/Couchbase.Glimpse/CouchbaseGlimpse.0.1.nupkg
  4. +60 −0 src/Couchbase.Glimpse/CouchbaseTab.cs
  5. +71 −0 src/Couchbase.Glimpse/Logging/GlimpseLog.cs
  6. +37 −0 src/Couchbase.Glimpse/Logging/GlimpseLogConfiguration.cs
  7. +35 −0 src/Couchbase.Glimpse/Logging/GlimpseLogFactory.cs
  8. +36 −0 src/Couchbase.Glimpse/Logging/GlimpseLogRow.cs
  9. +263 −0 src/Couchbase.Glimpse/Logging/GlimpseLogger.cs
  10. +2 −2 src/{CouchbaseGlimpseWeb → }/Couchbase.Glimpse/Properties/AssemblyInfo.cs
  11. 0  src/{CouchbaseGlimpseWeb → }/Couchbase.Glimpse/packages.config
  12. +0 −86 src/Couchbase.GlimpseAdapter/Couchbase.GlimpseAdapter.csproj
  13. +0 −12 src/Couchbase.GlimpseAdapter/CouchbaseLogger.cs
  14. +0 −21 src/Couchbase.GlimpseAdapter/GlimpseFactory.cs
  15. +0 −211 src/Couchbase.GlimpseAdapter/GlimpseWrapper.cs
  16. +0 −36 src/Couchbase.GlimpseAdapter/Properties/AssemblyInfo.cs
  17. +0 −6 src/Couchbase.GlimpseAdapter/packages.config
  18. +0 −61 src/CouchbaseGlimpse/CouchbaseGlimpse.csproj
  19. +0 −29 src/CouchbaseGlimpse/CouchbaseGlimpseTab.cs
  20. +0 −12 src/CouchbaseGlimpse/CouchbaseLogger.cs
  21. +0 −21 src/CouchbaseGlimpse/GlimpseFactory.cs
  22. +0 −211 src/CouchbaseGlimpse/GlimpseWrapper.cs
  23. +0 −36 src/CouchbaseGlimpse/Properties/AssemblyInfo.cs
  24. +0 −4 src/CouchbaseGlimpse/packages.config
  25. +6 −6 src/{CouchbaseGlimpseWeb → }/CouchbaseGlimpseWeb.sln
  26. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Content/Site.css
  27. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Content/images/couchbase-logo.png
  28. 0  ...ckages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
  29. 0  ...kages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png
  30. 0  ...kages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png
  31. 0  ...kages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png
  32. 0  ...kages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png
  33. 0  ...kages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png
  34. 0  ...kages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png
  35. 0  ...ery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  36. 0  ...{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-icons_222222_256x240.png
  37. 0  ...{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-icons_2e83ff_256x240.png
  38. 0  ...{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-icons_454545_256x240.png
  39. 0  ...{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-icons_888888_256x240.png
  40. 0  ...{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/images/ui-icons_cd0a0a_256x240.png
  41. 0  ...GlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.accordion.css
  42. 0  ...chbaseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.all.css
  43. 0  ...mpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.autocomplete.css
  44. 0  ...hbaseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.base.css
  45. 0  ...aseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.button.css
  46. 0  ...hbaseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.core.css
  47. 0  ...limpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.datepicker.css
  48. 0  ...aseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.dialog.css
  49. 0  ...impseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.progressbar.css
  50. 0  ...GlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.resizable.css
  51. 0  ...limpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.selectable.css
  52. 0  ...aseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.slider.css
  53. 0  ...hbaseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.tabs.css
  54. 0  ...baseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Content/themes/base/jquery.ui.theme.css
  55. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Controllers/BeersController.cs
  56. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Controllers/BreweriesController.cs
  57. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Controllers/CountriesController.cs
  58. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Controllers/HomeController.cs
  59. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Controllers/LocationsController.cs
  60. +0 −29 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/CouchbaseTab.cs
  61. +0 −211 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/Logging/GlimpseLogAdapter.cs
  62. +0 −21 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/Logging/GlimpseLogFactory.cs
  63. +0 −45 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/Logging/GlimpseLogger.cs
  64. +3 −6 src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/CouchbaseGlimpseWeb.csproj
  65. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/GlimpseSecurityPolicy.cs
  66. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Global.asax
  67. +5 −1 src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Global.asax.cs
  68. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Models/Beer.cs
  69. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Models/BeerRepository.cs
  70. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Models/Brewery.cs
  71. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Models/BreweryRepository.cs
  72. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Models/ModelBase.cs
  73. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Models/RepositoryBase.cs
  74. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Properties/AssemblyInfo.cs
  75. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.1.6.2/Content → }/Scripts/jquery-1.6.2-vsdoc.js
  76. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.1.6.2/Content → }/Scripts/jquery-1.6.2.js
  77. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.1.6.2/Content → }/Scripts/jquery-1.6.2.min.js
  78. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Scripts/jquery-ui-1.8.11.js
  79. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.UI.Combined.1.8.11/Content → }/Scripts/jquery-ui-1.8.11.min.js
  80. 0  ...uchbaseGlimpseWeb/{packages/jQuery.Ajax.Unobtrusive.1.0/Content → }/Scripts/jquery.unobtrusive-ajax.js
  81. 0  ...aseGlimpseWeb/{packages/jQuery.Ajax.Unobtrusive.1.0/Content → }/Scripts/jquery.unobtrusive-ajax.min.js
  82. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.Validation.1.8/Content → }/Scripts/jquery.validate-vsdoc.js
  83. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.Validation.1.8/Content → }/Scripts/jquery.validate.js
  84. 0  src/CouchbaseGlimpseWeb/{packages/jQuery.Validation.1.8/Content → }/Scripts/jquery.validate.min.js
  85. 0  ...mpseWeb/{packages/jQuery.Validation.Unobtrusive.1.0/Content → }/Scripts/jquery.validate.unobtrusive.js
  86. 0  ...Web/{packages/jQuery.Validation.Unobtrusive.1.0/Content → }/Scripts/jquery.validate.unobtrusive.min.js
  87. 0  src/CouchbaseGlimpseWeb/{packages/knockoutjs.1.2.9.0/Content → }/Scripts/knockout-1.3.0beta.debug.js
  88. 0  src/CouchbaseGlimpseWeb/{packages/knockoutjs.1.2.9.0/Content → }/Scripts/knockout-1.3.0beta.js
  89. 0  src/CouchbaseGlimpseWeb/{packages/Modernizr.2.0.6/Content → }/Scripts/modernizr-2.0.6-development-only.js
  90. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Beers/Create.cshtml
  91. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Beers/Delete.cshtml
  92. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Beers/Details.cshtml
  93. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Beers/Edit.cshtml
  94. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Beers/Index.cshtml
  95. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Breweries/Create.cshtml
  96. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Breweries/Delete.cshtml
  97. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Breweries/Details.cshtml
  98. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Breweries/Edit.cshtml
  99. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Breweries/Index.cshtml
  100. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Countries/Cities.cshtml
  101. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Countries/Codes.cshtml
  102. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Countries/Details.cshtml
  103. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Countries/Index.cshtml
  104. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Countries/Provinces.cshtml
  105. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Home/Index.cshtml
  106. +3 −8 src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Locations/Details.cshtml
  107. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Shared/Error.cshtml
  108. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Shared/_Layout.cshtml
  109. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/Web.config
  110. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Views/_ViewStart.cshtml
  111. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Web.Debug.config
  112. 0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Web.Release.config
  113. +1 −1  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/Web.config
  114. +1 −0  src/CouchbaseGlimpseWeb/{CouchbaseGlimpseWeb → }/packages.config
  115. 0  src/{CouchbaseGlimpseWeb → }/packages/AspNetMvc.4.0.10906.0/AspNetMvc.4.0.10906.0.nupkg
  116. 0  src/{CouchbaseGlimpseWeb → }/packages/AspNetMvc.4.0.10906.0/AspNetMvc.4.0.10906.0.nuspec
  117. 0  src/{CouchbaseGlimpseWeb → }/packages/AspNetMvc.4.0.10906.0/lib/net40/System.Web.Mvc.dll
  118. 0  src/{CouchbaseGlimpseWeb → }/packages/AspNetWebPagesCore.2.0.10906.0/AspNetWebPagesCore.2.0.10906.0.nupkg
  119. 0  ...{CouchbaseGlimpseWeb → }/packages/AspNetWebPagesCore.2.0.10906.0/AspNetWebPagesCore.2.0.10906.0.nuspec
  120. 0  src/{CouchbaseGlimpseWeb → }/packages/AspNetWebPagesCore.2.0.10906.0/lib/net40/System.Web.Helpers.dll
  121. 0  src/{CouchbaseGlimpseWeb → }/packages/AspNetWebPagesCore.2.0.10906.0/lib/net40/System.Web.Razor.dll
  122. 0  ...aseGlimpseWeb → }/packages/AspNetWebPagesCore.2.0.10906.0/lib/net40/System.Web.WebPages.Deployment.dll
  123. 0  ...ouchbaseGlimpseWeb → }/packages/AspNetWebPagesCore.2.0.10906.0/lib/net40/System.Web.WebPages.Razor.dll
  124. 0  src/{CouchbaseGlimpseWeb → }/packages/AspNetWebPagesCore.2.0.10906.0/lib/net40/System.Web.WebPages.dll
  125. BIN  src/packages/CouchbaseGlimpse.0.1/CouchbaseGlimpse.0.1.nupkg
  126. +19 −0 src/packages/CouchbaseGlimpse.0.1/CouchbaseGlimpse.0.1.nuspec
  127. BIN  src/packages/CouchbaseGlimpse.0.1/lib/net40/Couchbase.Glimpse.dll
  128. 0  ...hbaseGlimpseWeb → }/packages/CouchbaseModelViews.1.0.0-alpha-4/CouchbaseModelViews.1.0.0-alpha-4.nupkg
  129. 0  ...baseGlimpseWeb → }/packages/CouchbaseModelViews.1.0.0-alpha-4/CouchbaseModelViews.1.0.0-alpha-4.nuspec
  130. 0  ...eGlimpseWeb → }/packages/CouchbaseModelViews.1.0.0-alpha-4/lib/net40/CouchbaseModelViews.Framework.dll
  131. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/CouchbaseNetClient.1.2.2.nupkg
  132. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/CouchbaseNetClient.1.2.2.nuspec
  133. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/Couchbase.dll
  134. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/Couchbase.xml
  135. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/Enyim.Caching.Log4NetAdapter.dll
  136. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/Enyim.Caching.NLogAdapter.dll
  137. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/Enyim.Caching.dll
  138. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/NLog.dll
  139. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/RestSharp.dll
  140. 0  src/{CouchbaseGlimpseWeb → }/packages/CouchbaseNetClient.1.2.2/lib/net40/log4net.dll
  141. 0  src/{CouchbaseGlimpseWeb → }/packages/EntityFramework.4.1.10331.0/EntityFramework.4.1.10331.0.nupkg
  142. 0  src/{CouchbaseGlimpseWeb → }/packages/EntityFramework.4.1.10331.0/EntityFramework.4.1.10331.0.nuspec
  143. 0  src/{CouchbaseGlimpseWeb → }/packages/EntityFramework.4.1.10331.0/lib/net40/EntityFramework.dll
  144. 0  src/{CouchbaseGlimpseWeb → }/packages/EntityFramework.4.1.10331.0/lib/net40/EntityFramework.xml
  145. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.1.0.1/Glimpse.1.0.1.nupkg
  146. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.1.0.1/Glimpse.1.0.1.nuspec
  147. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.1.0.1/docs/Glimpse.Core.Documentation.chm
  148. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.1.0.1/lib/net35/Glimpse.Core.dll
  149. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.1.0.1/lib/net40/Glimpse.Core.dll
  150. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.1.0.1/tools/install.ps1
  151. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.1.0.1/tools/uninstall.ps1
  152. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.AspNet.1.0.1/Glimpse.AspNet.1.0.1.nupkg
  153. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.AspNet.1.0.1/Glimpse.AspNet.1.0.1.nuspec
  154. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.AspNet.1.0.1/content/GlimpseSecurityPolicy.cs.pp
  155. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.AspNet.1.0.1/content/web.config.transform
  156. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.AspNet.1.0.1/lib/net35/Glimpse.AspNet.dll
  157. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.AspNet.1.0.1/lib/net40/Glimpse.AspNet.dll
  158. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.Mvc3.1.0.1/Glimpse.Mvc3.1.0.1.nupkg
  159. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.Mvc3.1.0.1/Glimpse.Mvc3.1.0.1.nuspec
  160. 0  src/{CouchbaseGlimpseWeb → }/packages/Glimpse.Mvc3.1.0.1/lib/net40/Glimpse.Mvc3.dll
  161. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/Hammock.1.2.9.nupkg
  162. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/Hammock.1.2.9.nuspec
  163. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/LICENSE
  164. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/2.0/Hammock.dll
  165. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/2.0/LinqBridge.dll
  166. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/3.5/Hammock.ClientProfile.dll
  167. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/3.5/Hammock.dll
  168. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/4.0/Hammock.ClientProfile.dll
  169. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/4.0/Hammock.dll
  170. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/Hammock.Silverlight.dll
  171. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/ICSharpCode.SharpZipLib.Silverlight.dll
  172. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/System.Runtime.Serialization.Json.dll
  173. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/System.Runtime.Serialization.Json.xml
  174. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/System.Xml.Linq.dll
  175. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/System.Xml.Linq.xml
  176. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/de/System.Runtime.Serialization.Json.resources.dll
  177. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/de/System.Xml.Linq.resources.dll
  178. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/es/System.Runtime.Serialization.Json.resources.dll
  179. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/es/System.Xml.Linq.resources.dll
  180. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/fr/System.Runtime.Serialization.Json.resources.dll
  181. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/fr/System.Xml.Linq.resources.dll
  182. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/it/System.Runtime.Serialization.Json.resources.dll
  183. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/it/System.Xml.Linq.resources.dll
  184. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/ja/System.Runtime.Serialization.Json.resources.dll
  185. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/ja/System.Xml.Linq.resources.dll
  186. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/ko/System.Runtime.Serialization.Json.resources.dll
  187. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/ko/System.Xml.Linq.resources.dll
  188. 0  ...eGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/zh-Hans/System.Runtime.Serialization.Json.resources.dll
  189. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/zh-Hans/System.Xml.Linq.resources.dll
  190. 0  ...eGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/zh-Hant/System.Runtime.Serialization.Json.resources.dll
  191. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL3/zh-Hant/System.Xml.Linq.resources.dll
  192. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/Hammock.Silverlight.dll
  193. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ICSharpCode.SharpZipLib.Silverlight.dll
  194. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/Microsoft.CSharp.dll
  195. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/Microsoft.CSharp.xml
  196. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/System.Json.dll
  197. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/System.Json.xml
  198. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/System.Runtime.Serialization.Json.dll
  199. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/System.Runtime.Serialization.Json.xml
  200. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/System.Xml.Linq.dll
  201. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/System.Xml.Linq.xml
  202. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/de/Microsoft.CSharp.resources.dll
  203. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/de/System.Json.resources.dll
  204. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/de/System.Runtime.Serialization.Json.resources.dll
  205. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/de/System.Xml.Linq.resources.dll
  206. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/es/Microsoft.CSharp.resources.dll
  207. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/es/System.Json.resources.dll
  208. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/es/System.Runtime.Serialization.Json.resources.dll
  209. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/es/System.Xml.Linq.resources.dll
  210. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/fr/Microsoft.CSharp.resources.dll
  211. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/fr/System.Json.resources.dll
  212. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/fr/System.Runtime.Serialization.Json.resources.dll
  213. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/fr/System.Xml.Linq.resources.dll
  214. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/it/Microsoft.CSharp.resources.dll
  215. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/it/System.Json.resources.dll
  216. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/it/System.Runtime.Serialization.Json.resources.dll
  217. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/it/System.Xml.Linq.resources.dll
  218. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ja/Microsoft.CSharp.resources.dll
  219. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ja/System.Json.resources.dll
  220. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ja/System.Runtime.Serialization.Json.resources.dll
  221. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ja/System.Xml.Linq.resources.dll
  222. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ko/Microsoft.CSharp.resources.dll
  223. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ko/System.Json.resources.dll
  224. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ko/System.Runtime.Serialization.Json.resources.dll
  225. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ko/System.Xml.Linq.resources.dll
  226. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ru/Microsoft.CSharp.resources.dll
  227. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ru/System.Json.resources.dll
  228. 0  ...chbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ru/System.Runtime.Serialization.Json.resources.dll
  229. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/ru/System.Xml.Linq.resources.dll
  230. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hans/Microsoft.CSharp.resources.dll
  231. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hans/System.Json.resources.dll
  232. 0  ...eGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hans/System.Runtime.Serialization.Json.resources.dll
  233. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hans/System.Xml.Linq.resources.dll
  234. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hant/Microsoft.CSharp.resources.dll
  235. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hant/System.Json.resources.dll
  236. 0  ...eGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hant/System.Runtime.Serialization.Json.resources.dll
  237. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/SL4/zh-Hant/System.Xml.Linq.resources.dll
  238. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/WP7/Hammock.WindowsPhone.dll
  239. 0  src/{CouchbaseGlimpseWeb → }/packages/Hammock.1.2.9/lib/WP7/ICSharpCode.SharpZipLib.WindowsPhone.dll
  240. 0  src/{CouchbaseGlimpseWeb → }/packages/Microsoft.Web.Optimization.0.1/Microsoft.Web.Optimization.0.1.nupkg
  241. 0  ...{CouchbaseGlimpseWeb → }/packages/Microsoft.Web.Optimization.0.1/Microsoft.Web.Optimization.0.1.nuspec
  242. 0  ...uchbaseGlimpseWeb → }/packages/Microsoft.Web.Optimization.0.1/lib/net40/Microsoft.Web.Optimization.dll
  243. 0  ...aseGlimpseWeb → }/packages/MicrosoftWebInfrastructure.1.0.0.0/MicrosoftWebInfrastructure.1.0.0.0.nupkg
  244. 0  ...seGlimpseWeb → }/packages/MicrosoftWebInfrastructure.1.0.0.0/MicrosoftWebInfrastructure.1.0.0.0.nuspec
  245. 0  ...eGlimpseWeb → }/packages/MicrosoftWebInfrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
  246. 0  ...eb/CouchbaseGlimpseWeb → packages/Modernizr.2.0.6/Content}/Scripts/modernizr-2.0.6-development-only.js
  247. 0  src/{CouchbaseGlimpseWeb → }/packages/Modernizr.2.0.6/Modernizr.2.0.6.nupkg
  248. 0  src/{CouchbaseGlimpseWeb → }/packages/Modernizr.2.0.6/Modernizr.2.0.6.nuspec
  249. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/Newtonsoft.Json.4.5.11.nupkg
  250. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/Newtonsoft.Json.4.5.11.nuspec
  251. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/net20/Newtonsoft.Json.dll
  252. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/net20/Newtonsoft.Json.xml
  253. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/net35/Newtonsoft.Json.dll
  254. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/net35/Newtonsoft.Json.xml
  255. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/net40/Newtonsoft.Json.dll
  256. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/net40/Newtonsoft.Json.xml
  257. 0  ...baseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll
  258. 0  ...baseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.xml
  259. 0  ...t.Json.4.5.11/lib/sl4-windowsphone71 → packages/Newtonsoft.Json.4.5.11/lib/sl3-wp}/Newtonsoft.Json.dll
  260. 0  ...t.Json.4.5.11/lib/sl4-windowsphone71 → packages/Newtonsoft.Json.4.5.11/lib/sl3-wp}/Newtonsoft.Json.xml
  261. 0  ...t.Json.4.5.11/lib/sl3-wp → packages/Newtonsoft.Json.4.5.11/lib/sl4-windowsphone71}/Newtonsoft.Json.dll
  262. 0  ...t.Json.4.5.11/lib/sl3-wp → packages/Newtonsoft.Json.4.5.11/lib/sl4-windowsphone71}/Newtonsoft.Json.xml
  263. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/sl4/Newtonsoft.Json.dll
  264. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/sl4/Newtonsoft.Json.xml
  265. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/winrt45/Newtonsoft.Json.dll
  266. 0  src/{CouchbaseGlimpseWeb → }/packages/Newtonsoft.Json.4.5.11/lib/winrt45/Newtonsoft.Json.xml
  267. 0  src/{CouchbaseGlimpseWeb → }/packages/System.Web.Providers.1.0.1/EULA.rtf
  268. 0  src/{CouchbaseGlimpseWeb → }/packages/System.Web.Providers.1.0.1/System.Web.Providers.1.0.1.nupkg
  269. 0  src/{CouchbaseGlimpseWeb → }/packages/System.Web.Providers.1.0.1/System.Web.Providers.1.0.1.nuspec
  270. 0  src/{CouchbaseGlimpseWeb → }/packages/System.Web.Providers.1.0.1/content/web.config.transform
  271. 0  src/{CouchbaseGlimpseWeb → }/packages/System.Web.Providers.1.0.1/lib/Net40/System.Web.Providers.dll
  272. 0  src/{CouchbaseGlimpseWeb → }/packages/System.Web.Providers.1.0.1/readme.html
  273. 0  src/{CouchbaseGlimpseWeb → }/packages/inflector_extension.0.0.8/inflector_extension.0.0.8.nupkg
  274. 0  src/{CouchbaseGlimpseWeb → }/packages/inflector_extension.0.0.8/inflector_extension.0.0.8.nuspec
  275. 0  src/{CouchbaseGlimpseWeb → }/packages/inflector_extension.0.0.8/lib/Net35/inflector_extension.dll
  276. 0  src/{CouchbaseGlimpseWeb → }/packages/inflector_extension.0.0.8/lib/Net40/inflector_extension.dll
  277. 0  ...CouchbaseGlimpseWeb/CouchbaseGlimpseWeb → packages/jQuery.1.6.2/Content}/Scripts/jquery-1.6.2-vsdoc.js
  278. 0  src/{CouchbaseGlimpseWeb/CouchbaseGlimpseWeb → packages/jQuery.1.6.2/Content}/Scripts/jquery-1.6.2.js
  279. 0  src/{CouchbaseGlimpseWeb/CouchbaseGlimpseWeb → packages/jQuery.1.6.2/Content}/Scripts/jquery-1.6.2.min.js
  280. 0  src/{CouchbaseGlimpseWeb → }/packages/jQuery.1.6.2/jQuery.1.6.2.nupkg
  281. 0  src/{CouchbaseGlimpseWeb → }/packages/jQuery.1.6.2/jQuery.1.6.2.nuspec
  282. 0  ...CouchbaseGlimpseWeb → packages/jQuery.Ajax.Unobtrusive.1.0/Content}/Scripts/jquery.unobtrusive-ajax.js
  283. 0  ...hbaseGlimpseWeb → packages/jQuery.Ajax.Unobtrusive.1.0/Content}/Scripts/jquery.unobtrusive-ajax.min.js
  284. 0  src/{CouchbaseGlimpseWeb → }/packages/jQuery.Ajax.Unobtrusive.1.0/jQuery.Ajax.Unobtrusive.1.0.nupkg
  285. 0  src/{CouchbaseGlimpseWeb → }/packages/jQuery.Ajax.Unobtrusive.1.0/jQuery.Ajax.Unobtrusive.1.0.nuspec
  286. 0  ...rarr; packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
  287. 0  ...arr; packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png
  288. 0  ...arr; packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png
  289. 0  ...arr; packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png
  290. 0  ...arr; packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png
  291. 0  ...arr; packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png
  292. 0  ...arr; packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png
  293. 0  ...ages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  294. 0  ...b → packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-icons_222222_256x240.png
  295. 0  ...b → packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-icons_2e83ff_256x240.png
  296. 0  ...b → packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-icons_454545_256x240.png
  297. 0  ...b → packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-icons_888888_256x240.png
  298. 0  ...b → packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/images/ui-icons_cd0a0a_256x240.png
  299. 0  ...seGlimpseWeb → packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/jquery.ui.accordion.css
  300. 0  ...ouchbaseGlimpseWeb → packages/jQuery.UI.Combined.1.8.11/Content}/Content/themes/base/jquery.ui.all.css
Sorry, we could not display the entire diff because too many files (360) changed.
View
6 ...ouchbase.Glimpse/Couchbase.Glimpse.csproj → ...ouchbase.Glimpse/Couchbase.Glimpse.csproj
@@ -75,9 +75,11 @@
</ItemGroup>
<ItemGroup>
<Compile Include="CouchbaseTab.cs" />
- <Compile Include="Logging\GlimpseLogAdapter.cs" />
- <Compile Include="Logging\GlimpseLogFactory.cs" />
<Compile Include="Logging\GlimpseLogger.cs" />
+ <Compile Include="Logging\GlimpseLogConfiguration.cs" />
+ <Compile Include="Logging\GlimpseLogFactory.cs" />
+ <Compile Include="Logging\GlimpseLog.cs" />
+ <Compile Include="Logging\GlimpseLogRow.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
View
15 src/Couchbase.Glimpse/Couchbase.Glimpse.nuspec
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<package >
+ <metadata>
+ <id>CouchbaseGlimpse</id>
+ <version>0.1</version>
+ <title>Glimpse for Couchbase</title>
+ <authors>Couchbase</authors>
+ <owners>Couchbase</owners>
+ <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>http://github.com/couchbaselabs/couchbase-glimpse</projectUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>Couchbase client logging tab for Glimpse</description>
+ <tags>Couchbase nosql</tags>
+ </metadata>
+</package>
View
BIN  src/Couchbase.Glimpse/CouchbaseGlimpse.0.1.nupkg
Binary file not shown
View
60 src/Couchbase.Glimpse/CouchbaseTab.cs
@@ -0,0 +1,60 @@
+/**
+ * Copyright (c) 2012 Couchbase, Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Glimpse.Core.Extensibility;
+using Couchbase.Glimpse.Logging;
+
+namespace Couchbase.Glimpse
+{
+ public class CouchbaseTab : TabBase
+ {
+ public override object GetData(ITabContext context)
+ {
+ var data = new List<object[]> { new[] { "Level", "Timestamp", "Source", "Message", "Exception", "Thread" } };
+ var debug = new List<object[]> { };
+
+ Action<Dictionary<string, List<GlimpseLogRow>>> addData = (d) =>
+ {
+ foreach (var key in d.Keys)
+ {
+ d[key].ForEach(a =>
+ {
+ var exCol = new List<object> { };
+ if (a.Exception != null)
+ {
+ exCol.Add(new object[] { "Message", "StackTrace" });
+ exCol.Add(new object[] { a.Exception.Message, a.Exception.StackTrace });
+ }
+ data.Add(new object[] { a.Level, a.Timestamp, a.Source, a.Message, exCol, a.ThreadId });
+ });
+ }
+ };
+
+ addData(GlimpseLog.PreHttpContextRows);
+ addData(GlimpseLog.Rows);
+ GlimpseLog.PreHttpContextRows.Clear();
+ return data;
+ }
+
+ public override string Name
+ {
+ get { return "Couchbase"; }
+ }
+
+ }
+}
View
71 src/Couchbase.Glimpse/Logging/GlimpseLog.cs
@@ -0,0 +1,71 @@
+/**
+ * Copyright (c) 2012 Couchbase, Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Web;
+
+namespace Couchbase.Glimpse.Logging
+{
+ public static class GlimpseLog
+ {
+ private static Dictionary<string, List<GlimpseLogRow>> _preHttpContextRows= new Dictionary<string, List<GlimpseLogRow>>();
+
+ public static Dictionary<string, List<GlimpseLogRow>> Rows
+ {
+ get { return getRows(); }
+ }
+
+ public static Dictionary<string, List<GlimpseLogRow>> PreHttpContextRows
+ {
+ get { return _preHttpContextRows; }
+ }
+
+ public static void AddRow(GlimpseLogRow row)
+ {
+ //Condition when client is created in a constructor
+ if (HttpContext.Current == null)
+ {
+ if (!_preHttpContextRows.ContainsKey(row.Level))
+ {
+ _preHttpContextRows[row.Level] = new List<GlimpseLogRow>();
+ }
+ _preHttpContextRows[row.Level].Add(row);
+ return;
+ }
+
+ var rows = getRows();
+ if (! rows.ContainsKey(row.Level))
+ {
+ rows[row.Level] = new List<GlimpseLogRow>();
+ }
+ rows[row.Level].Add(row);
+ }
+
+ private static Dictionary<string, List<GlimpseLogRow>> getRows()
+ {
+ var rows = HttpContext.Current.Items["CB:Messages"] as Dictionary<string, List<GlimpseLogRow>>;
+ if (rows == null)
+ {
+ rows = new Dictionary<string, List<GlimpseLogRow>>();
+ HttpContext.Current.Items["CB:Messages"] = rows;
+ }
+ return rows;
+ }
+
+
+ }
+}
View
37 src/Couchbase.Glimpse/Logging/GlimpseLogConfiguration.cs
@@ -0,0 +1,37 @@
+/**
+ * Copyright (c) 2012 Couchbase, Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Couchbase.Glimpse.Logging
+{
+ public sealed class GlimpseLogConfiguration
+ {
+ public bool IsDebugEnabled { get; set; }
+
+ public bool IsInfoEnabled { get; set; }
+
+ public bool IsWarnEnabled { get; set; }
+
+ public bool IsErrorEnabled { get; set; }
+
+ public bool IsFatalEnabled { get; set; }
+
+ private List<string> _sourceWhiteList = new List<string>();
+ public List<string> SourceWhiteList { get { return _sourceWhiteList; } }
+ }
+}
View
35 src/Couchbase.Glimpse/Logging/GlimpseLogFactory.cs
@@ -0,0 +1,35 @@
+/**
+ * Copyright (c) 2012 Couchbase, Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Enyim.Caching;
+
+namespace Couchbase.Glimpse.Logging
+{
+ public class GlimpseLogFactory : ILogFactory
+ {
+ public ILog GetLogger(Type type)
+ {
+ return new GlimpseLogger(type.Name);
+ }
+
+ public ILog GetLogger(string name)
+ {
+ return new GlimpseLogger(name);
+ }
+ }
+}
View
36 src/Couchbase.Glimpse/Logging/GlimpseLogRow.cs
@@ -0,0 +1,36 @@
+/**
+ * Copyright (c) 2012 Couchbase, Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Couchbase.Glimpse.Logging
+{
+ public class GlimpseLogRow
+ {
+ public string Level { get; set; }
+
+ public DateTime Timestamp { get; set; }
+
+ public Exception Exception { get; set; }
+
+ public string Message { get; set; }
+
+ public string Source { get; set; }
+
+ public int ThreadId { get; set; }
+ }
+}
View
263 src/Couchbase.Glimpse/Logging/GlimpseLogger.cs
@@ -0,0 +1,263 @@
+/**
+ * Copyright (c) 2012 Couchbase, Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language governing permissions
+ * and limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Enyim.Caching;
+using System.Threading;
+
+namespace Couchbase.Glimpse.Logging
+{
+ public class GlimpseLogger : ILog
+ {
+ public enum LogLevel { Debug, Info, Warn, Error, Fatal }
+
+ private static GlimpseLogConfiguration _configuration = new GlimpseLogConfiguration();
+ private readonly string _type;
+
+ public GlimpseLogger(string type)
+ {
+ _type = type;
+ }
+
+ public static void Configure(GlimpseLogConfiguration configuration)
+ {
+ _configuration = configuration;
+ }
+
+ #region Debug
+ public void Debug(object message, Exception exception)
+ {
+ addRow(LogLevel.Debug, message, ex: exception);
+ }
+
+ public void Debug(object message)
+ {
+ addRow(LogLevel.Debug, message);
+ }
+
+ public void DebugFormat(IFormatProvider provider, string format, params object[] args)
+ {
+ DebugFormat(format, args);
+ }
+
+ public void DebugFormat(string format, params object[] args)
+ {
+ addRow(LogLevel.Debug, format, args: args);
+ }
+
+ public void DebugFormat(string format, object arg0, object arg1, object arg2)
+ {
+ addRow(LogLevel.Debug, format, args: new object[] { arg0, arg1, arg2 });
+ }
+
+ public void DebugFormat(string format, object arg0, object arg1)
+ {
+ addRow(LogLevel.Debug, format, args: new object[] { arg0, arg1 });
+ }
+
+ public void DebugFormat(string format, object arg0)
+ {
+ addRow(LogLevel.Debug, format, args: new object[] { arg0 });
+ }
+ #endregion
+
+ public void Error(object message, Exception exception)
+ {
+ addRow(LogLevel.Error, message, ex: exception);
+ }
+
+ public void Error(object message)
+ {
+ addRow(LogLevel.Error, message);
+ }
+
+ public void ErrorFormat(IFormatProvider provider, string format, params object[] args)
+ {
+ ErrorFormat(format, args);
+ }
+
+ public void ErrorFormat(string format, params object[] args)
+ {
+ addRow(LogLevel.Error, format, args: args);
+ }
+
+ public void ErrorFormat(string format, object arg0, object arg1, object arg2)
+ {
+ addRow(LogLevel.Error, format, args: new object[] { arg0, arg1, arg2 });
+ }
+
+ public void ErrorFormat(string format, object arg0, object arg1)
+ {
+ addRow(LogLevel.Error, format, args: new object[] { arg0, arg1 });
+ }
+
+ public void ErrorFormat(string format, object arg0)
+ {
+ addRow(LogLevel.Error, format, args: new object[] { arg0 });
+ }
+
+ public void Fatal(object message, Exception exception)
+ {
+ addRow(LogLevel.Fatal, message, ex: exception );
+ }
+
+ public void Fatal(object message)
+ {
+ addRow(LogLevel.Fatal, message);
+ }
+
+ public void FatalFormat(IFormatProvider provider, string format, params object[] args)
+ {
+ FatalFormat(format, args);
+ }
+
+ public void FatalFormat(string format, params object[] args)
+ {
+ addRow(LogLevel.Fatal, format, args: args);
+ }
+
+ public void FatalFormat(string format, object arg0, object arg1, object arg2)
+ {
+ addRow(LogLevel.Fatal, format, args: new object[] { arg0, arg1, arg2 });
+ }
+
+ public void FatalFormat(string format, object arg0, object arg1)
+ {
+ addRow(LogLevel.Fatal, format, args: new object[] { arg0, arg1 });
+ }
+
+ public void FatalFormat(string format, object arg0)
+ {
+ addRow(LogLevel.Fatal, format, args: new object[] { arg0 });
+ }
+
+ public void Info(object message, Exception exception)
+ {
+ addRow(LogLevel.Info, message, ex: exception);
+ }
+
+ public void Info(object message)
+ {
+ addRow(LogLevel.Info, message);
+ }
+
+ public void InfoFormat(IFormatProvider provider, string format, params object[] args)
+ {
+ InfoFormat(format, args);
+ }
+
+ public void InfoFormat(string format, params object[] args)
+ {
+ addRow(LogLevel.Info, format, args: args);
+ }
+
+ public void InfoFormat(string format, object arg0, object arg1, object arg2)
+ {
+ addRow(LogLevel.Info, format, args: new object[] { arg0, arg1, arg2 });
+ }
+
+ public void InfoFormat(string format, object arg0, object arg1)
+ {
+ addRow(LogLevel.Info, format, args: new object[] { arg0, arg1 });
+ }
+
+ public void InfoFormat(string format, object arg0)
+ {
+ addRow(LogLevel.Info, format, args: new object[] { arg0 });
+ }
+
+ public bool IsDebugEnabled
+ {
+ get { return _configuration.IsDebugEnabled; }
+ }
+
+ public bool IsErrorEnabled
+ {
+ get { return _configuration.IsErrorEnabled || _configuration.IsWarnEnabled; }
+ }
+
+ public bool IsFatalEnabled
+ {
+ get { return _configuration.IsFatalEnabled || _configuration.IsErrorEnabled; }
+ }
+
+ public bool IsInfoEnabled
+ {
+ get { return _configuration.IsInfoEnabled || _configuration.IsDebugEnabled; }
+ }
+
+ public bool IsWarnEnabled
+ {
+ get { return _configuration.IsWarnEnabled || _configuration.IsInfoEnabled; }
+ }
+
+ public void Warn(object message, Exception exception)
+ {
+ addRow(LogLevel.Warn, message, ex: exception);
+ }
+
+ public void Warn(object message)
+ {
+ addRow(LogLevel.Warn, message);
+ }
+
+ public void WarnFormat(IFormatProvider provider, string format, params object[] args)
+ {
+ WarnFormat(format);
+ }
+
+ public void WarnFormat(string format, params object[] args)
+ {
+ addRow(LogLevel.Warn, format, args: args);
+ }
+
+ public void WarnFormat(string format, object arg0, object arg1, object arg2)
+ {
+ addRow(LogLevel.Warn, format, args: new object[] { arg0, arg1, arg2 });
+ }
+
+ public void WarnFormat(string format, object arg0, object arg1)
+ {
+ addRow(LogLevel.Warn, format, args: new object[] { arg0, arg1 });
+ }
+
+ public void WarnFormat(string format, object arg0)
+ {
+ addRow(LogLevel.Warn, format, args: new object[] { arg0 });
+ }
+
+ private void addRow(LogLevel level, object message, Exception ex = null, object[] args = null)
+ {
+ if (_configuration.SourceWhiteList.Count > 0 && ! _configuration.SourceWhiteList.Contains(_type))
+ {
+ return;
+ }
+
+ var row = new GlimpseLogRow
+ {
+ Level = Enum.GetName(typeof(LogLevel), level).ToUpper(),
+ Message = args == null ? message as string : string.Format(message as string, args),
+ Timestamp = DateTime.Now,
+ Exception = ex,
+ Source = _type,
+ ThreadId = Thread.CurrentThread.ManagedThreadId
+ };
+
+ GlimpseLog.AddRow(row);
+ }
+ }
+}
View
4 ...chbase.Glimpse/Properties/AssemblyInfo.cs → ...chbase.Glimpse/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("0.1.0.0")]
+[assembly: AssemblyFileVersion("0.1.0.0")]
View
0  ...mpseWeb/Couchbase.Glimpse/packages.config → src/Couchbase.Glimpse/packages.config
File renamed without changes
View
86 src/Couchbase.GlimpseAdapter/Couchbase.GlimpseAdapter.csproj
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{C3FC0471-659D-4D25-982F-10881BB9C0FD}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Couchbase.GlimpseAdapter</RootNamespace>
- <AssemblyName>Couchbase.GlimpseAdapter</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Couchbase">
- <HintPath>..\CouchbaseGlimpseWeb\packages\CouchbaseNetClient.1.2.2\lib\net40\Couchbase.dll</HintPath>
- </Reference>
- <Reference Include="Enyim.Caching">
- <HintPath>..\CouchbaseGlimpseWeb\packages\CouchbaseNetClient.1.2.2\lib\net40\Enyim.Caching.dll</HintPath>
- </Reference>
- <Reference Include="Enyim.Caching.Log4NetAdapter">
- <HintPath>..\CouchbaseGlimpseWeb\packages\CouchbaseNetClient.1.2.2\lib\net40\Enyim.Caching.Log4NetAdapter.dll</HintPath>
- </Reference>
- <Reference Include="Enyim.Caching.NLogAdapter">
- <HintPath>..\CouchbaseGlimpseWeb\packages\CouchbaseNetClient.1.2.2\lib\net40\Enyim.Caching.NLogAdapter.dll</HintPath>
- </Reference>
- <Reference Include="Hammock">
- <HintPath>..\CouchbaseGlimpseWeb\packages\Hammock.1.2.9\lib\4.0\Hammock.dll</HintPath>
- </Reference>
- <Reference Include="Hammock.ClientProfile">
- <HintPath>..\CouchbaseGlimpseWeb\packages\Hammock.1.2.9\lib\4.0\Hammock.ClientProfile.dll</HintPath>
- </Reference>
- <Reference Include="log4net">
- <HintPath>..\CouchbaseGlimpseWeb\packages\CouchbaseNetClient.1.2.2\lib\net40\log4net.dll</HintPath>
- </Reference>
- <Reference Include="Newtonsoft.Json">
- <HintPath>..\CouchbaseGlimpseWeb\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll</HintPath>
- </Reference>
- <Reference Include="NLog">
- <HintPath>..\CouchbaseGlimpseWeb\packages\CouchbaseNetClient.1.2.2\lib\net40\NLog.dll</HintPath>
- </Reference>
- <Reference Include="RestSharp">
- <HintPath>..\CouchbaseGlimpseWeb\packages\CouchbaseNetClient.1.2.2\lib\net40\RestSharp.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
12 src/Couchbase.GlimpseAdapter/CouchbaseLogger.cs
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Couchbase.GlimpseAdapter
-{
- public static class CouchbaseLogger
- {
- public static
- }
-}
View
21 src/Couchbase.GlimpseAdapter/GlimpseFactory.cs
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Enyim.Caching;
-
-namespace Couchbase.GlimpseAdapter
-{
- public class GlimpseFactory : ILogFactory
- {
- public ILog GetLogger(Type type)
- {
- retirn
- }
-
- public ILog GetLogger(string name)
- {
- throw new NotImplementedException();
- }
- }
-}
View
211 src/Couchbase.GlimpseAdapter/GlimpseWrapper.cs
@@ -1,211 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Enyim.Caching;
-
-namespace Couchbase.GlimpseAdapter
-{
- public class GlimpseWrapper : ILog
- {
- public void Debug(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Debug(object message)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public void Error(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Error(object message)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public void Fatal(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Fatal(object message)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public void Info(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Info(object message)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public bool IsDebugEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsErrorEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsFatalEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsInfoEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsWarnEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public void Warn(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Warn(object message)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
- }
-}
View
36 src/Couchbase.GlimpseAdapter/Properties/AssemblyInfo.cs
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Couchbase.GlimpseAdapter")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Couchbase.GlimpseAdapter")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("4288667c-943d-42a8-a6e2-be597a343fea")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
6 src/Couchbase.GlimpseAdapter/packages.config
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="CouchbaseNetClient" version="1.2.2" targetFramework="net40" />
- <package id="Hammock" version="1.2.9" targetFramework="net40" />
- <package id="Newtonsoft.Json" version="4.5.11" targetFramework="net40" />
-</packages>
View
61 src/CouchbaseGlimpse/CouchbaseGlimpse.csproj
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{0DEA1743-B71E-40A3-BB46-0F307F2686DF}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>CouchbaseGlimpse</RootNamespace>
- <AssemblyName>CouchbaseGlimpse</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Glimpse.Core">
- <HintPath>..\CouchbaseGlimpseWeb\packages\Glimpse.1.0.1\lib\net40\Glimpse.Core.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Web" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="CouchbaseGlimpseTab.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
29 src/CouchbaseGlimpse/CouchbaseGlimpseTab.cs
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Web;
-using Glimpse.Core.Extensibility;
-
-namespace CouchbaseGlimpse
-{
- public class CouchbaseGlimpseTab : TabBase
- {
- public override string Name
- {
- get { return "Couchbase"; }
- }
-
- public override object GetData(ITabContext context)
- {
- var data = new List<object[]> { new[] { "Key", "Value" } };
-
- data.Add(new object[] { "Hello", "World" });
- data.Add(new object[] { "Hola", "Mundo" });
- data.Add(new object[] { "Hallo", "Welt" });
-
- return data;
- }
- }
-}
-
View
12 src/CouchbaseGlimpse/CouchbaseLogger.cs
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Couchbase.GlimpseAdapter
-{
- public static class CouchbaseLogger
- {
- public static
- }
-}
View
21 src/CouchbaseGlimpse/GlimpseFactory.cs
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Enyim.Caching;
-
-namespace Couchbase.GlimpseAdapter
-{
- public class GlimpseFactory : ILogFactory
- {
- public ILog GetLogger(Type type)
- {
- retirn
- }
-
- public ILog GetLogger(string name)
- {
- throw new NotImplementedException();
- }
- }
-}
View
211 src/CouchbaseGlimpse/GlimpseWrapper.cs
@@ -1,211 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Enyim.Caching;
-
-namespace Couchbase.GlimpseAdapter
-{
- public class GlimpseWrapper : ILog
- {
- public void Debug(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Debug(object message)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void DebugFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public void Error(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Error(object message)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void ErrorFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public void Fatal(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Fatal(object message)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void FatalFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public void Info(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Info(object message)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void InfoFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
-
- public bool IsDebugEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsErrorEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsFatalEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsInfoEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public bool IsWarnEnabled
- {
- get { throw new NotImplementedException(); }
- }
-
- public void Warn(object message, Exception exception)
- {
- throw new NotImplementedException();
- }
-
- public void Warn(object message)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(IFormatProvider provider, string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, params object[] args)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, object arg0, object arg1)
- {
- throw new NotImplementedException();
- }
-
- public void WarnFormat(string format, object arg0)
- {
- throw new NotImplementedException();
- }
- }
-}
View
36 src/CouchbaseGlimpse/Properties/AssemblyInfo.cs
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("CouchbaseGlimpse")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("CouchbaseGlimpse")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("a765e24e-49ff-4414-ad10-dd54b9b24153")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
4 src/CouchbaseGlimpse/packages.config
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="Glimpse" version="1.0.1" targetFramework="net40" />
-</packages>
View
12 ...uchbaseGlimpseWeb/CouchbaseGlimpseWeb.sln → src/CouchbaseGlimpseWeb.sln
@@ -1,24 +1,24 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CouchbaseGlimpseWeb", "CouchbaseGlimpseWeb\CouchbaseGlimpseWeb.csproj", "{B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Couchbase.Glimpse", "Couchbase.Glimpse\Couchbase.Glimpse.csproj", "{543E589B-B021-4E59-82FE-EDA6797F3266}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CouchbaseGlimpseWeb", "CouchbaseGlimpseWeb\CouchbaseGlimpseWeb.csproj", "{B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Release|Any CPU.Build.0 = Release|Any CPU
{543E589B-B021-4E59-82FE-EDA6797F3266}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{543E589B-B021-4E59-82FE-EDA6797F3266}.Debug|Any CPU.Build.0 = Debug|Any CPU
{543E589B-B021-4E59-82FE-EDA6797F3266}.Release|Any CPU.ActiveCfg = Release|Any CPU
{543E589B-B021-4E59-82FE-EDA6797F3266}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B28E3A2A-56CB-4A5D-8FD3-64917E373C5D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
View
0  ...eWeb/CouchbaseGlimpseWeb/Content/Site.css → src/CouchbaseGlimpseWeb/Content/Site.css
File renamed without changes
View
0  ...mpseWeb/Content/images/couchbase-logo.png → ...mpseWeb/Content/images/couchbase-logo.png
File renamed without changes
View
0  ...ase/images/ui-bg_flat_0_aaaaaa_40x100.png → ...ase/images/ui-bg_flat_0_aaaaaa_40x100.png
File renamed without changes
View
0  ...se/images/ui-bg_flat_75_ffffff_40x100.png → ...se/images/ui-bg_flat_75_ffffff_40x100.png
File renamed without changes
View
0  ...se/images/ui-bg_glass_55_fbf9ee_1x400.png → ...se/images/ui-bg_glass_55_fbf9ee_1x400.png
File renamed without changes
View
0  ...se/images/ui-bg_glass_65_ffffff_1x400.png → ...se/images/ui-bg_glass_65_ffffff_1x400.png
File renamed without changes
View
0  ...se/images/ui-bg_glass_75_dadada_1x400.png → ...se/images/ui-bg_glass_75_dadada_1x400.png
File renamed without changes
View
0  ...se/images/ui-bg_glass_75_e6e6e6_1x400.png → ...se/images/ui-bg_glass_75_e6e6e6_1x400.png
File renamed without changes
View
0  ...se/images/ui-bg_glass_95_fef1ec_1x400.png → ...se/images/ui-bg_glass_95_fef1ec_1x400.png
File renamed without changes
View
0  .../ui-bg_highlight-soft_75_cccccc_1x100.png → .../ui-bg_highlight-soft_75_cccccc_1x100.png
File renamed without changes
View
0  ...s/base/images/ui-icons_222222_256x240.png → ...s/base/images/ui-icons_222222_256x240.png
File renamed without changes
View
0  ...s/base/images/ui-icons_2e83ff_256x240.png → ...s/base/images/ui-icons_2e83ff_256x240.png
File renamed without changes
View
0  ...s/base/images/ui-icons_454545_256x240.png → ...s/base/images/ui-icons_454545_256x240.png
File renamed without changes
View
0  ...s/base/images/ui-icons_888888_256x240.png → ...s/base/images/ui-icons_888888_256x240.png
File renamed without changes
View
0  ...s/base/images/ui-icons_cd0a0a_256x240.png → ...s/base/images/ui-icons_cd0a0a_256x240.png
File renamed without changes
View
0  ...ntent/themes/base/jquery.ui.accordion.css → ...ntent/themes/base/jquery.ui.accordion.css
File renamed without changes
View
0  ...ent/Content/themes/base/jquery.ui.all.css → ...Web/Content/themes/base/jquery.ui.all.css
File renamed without changes
View
0  ...nt/themes/base/jquery.ui.autocomplete.css → ...nt/themes/base/jquery.ui.autocomplete.css
File renamed without changes
View
0  ...nt/Content/themes/base/jquery.ui.base.css → ...eb/Content/themes/base/jquery.ui.base.css
File renamed without changes
View
0  .../Content/themes/base/jquery.ui.button.css → .../Content/themes/base/jquery.ui.button.css
File renamed without changes
View
0  ...nt/Content/themes/base/jquery.ui.core.css → ...eb/Content/themes/base/jquery.ui.core.css
File renamed without changes
View
0  ...tent/themes/base/jquery.ui.datepicker.css → ...tent/themes/base/jquery.ui.datepicker.css
File renamed without changes
View
0  .../Content/themes/base/jquery.ui.dialog.css → .../Content/themes/base/jquery.ui.dialog.css
File renamed without changes
View
0  ...ent/themes/base/jquery.ui.progressbar.css → ...ent/themes/base/jquery.ui.progressbar.css
File renamed without changes
View
0  ...ntent/themes/base/jquery.ui.resizable.css → ...ntent/themes/base/jquery.ui.resizable.css
File renamed without changes
View
0  ...tent/themes/base/jquery.ui.selectable.css → ...tent/themes/base/jquery.ui.selectable.css
File renamed without changes
View
0  .../Content/themes/base/jquery.ui.slider.css → .../Content/themes/base/jquery.ui.slider.css
File renamed without changes
View
0  ...nt/Content/themes/base/jquery.ui.tabs.css → ...eb/Content/themes/base/jquery.ui.tabs.css
File renamed without changes
View
0  ...t/Content/themes/base/jquery.ui.theme.css → ...b/Content/themes/base/jquery.ui.theme.css
File renamed without changes
View
0  ...GlimpseWeb/Controllers/BeersController.cs → ...GlimpseWeb/Controllers/BeersController.cs
File renamed without changes
View
0  ...pseWeb/Controllers/BreweriesController.cs → ...pseWeb/Controllers/BreweriesController.cs
File renamed without changes
View
0  ...pseWeb/Controllers/CountriesController.cs → ...pseWeb/Controllers/CountriesController.cs
File renamed without changes
View
0  ...eGlimpseWeb/Controllers/HomeController.cs → ...eGlimpseWeb/Controllers/HomeController.cs
File renamed without changes
View
0  ...pseWeb/Controllers/LocationsController.cs → ...pseWeb/Controllers/LocationsController.cs
File renamed without changes
View
29 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/CouchbaseTab.cs
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Glimpse.Core.Extensibility;
-using Couchbase.Glimpse.Logging;
-
-namespace Couchbase.Glimpse
-{
- public class CouchbaseTab : TabBase
- {
- public override object GetData(ITabContext context)
- {
- var data = new List<object[]> { new[] { "Key", "Value" } };
-
- foreach (var debug in GlimpseLogger.DebugMesages)
- {
- data.Add(new object[] { "Debug", debug });
- }
-
- return data;
- }
-
- public override string Name
- {
- get { return "Couchbase"; }
- }
- }
-}
View
211 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/Logging/GlimpseLogAdapter.cs
@@ -1,211 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Enyim.Caching;
-
-namespace Couchbase.Glimpse.Logging
-{
- public class GlimpseLogAdapter : ILog
- {
- public void Debug(object message, Exception exception)
- {
- return;
- }
-
- public void Debug(object message)
- {
- GlimpseLogger.Debug(message.ToString());
- }
-
- public void DebugFormat(IFormatProvider provider, string format, params object[] args)
- {
- return;
- }
-
- public void DebugFormat(string format, params object[] args)
- {
- return;
- }
-
- public void DebugFormat(string format, object arg0, object arg1, object arg2)
- {
- return;
- }
-
- public void DebugFormat(string format, object arg0, object arg1)
- {
- return;
- }
-
- public void DebugFormat(string format, object arg0)
- {
- return;
- }
-
- public void Error(object message, Exception exception)
- {
- return;
- }
-
- public void Error(object message)
- {
- return;
- }
-
- public void ErrorFormat(IFormatProvider provider, string format, params object[] args)
- {
- return;
- }
-
- public void ErrorFormat(string format, params object[] args)
- {
- return;
- }
-
- public void ErrorFormat(string format, object arg0, object arg1, object arg2)
- {
- return;
- }
-
- public void ErrorFormat(string format, object arg0, object arg1)
- {
- return;
- }
-
- public void ErrorFormat(string format, object arg0)
- {
- return;
- }
-
- public void Fatal(object message, Exception exception)
- {
- return;
- }
-
- public void Fatal(object message)
- {
- return;
- }
-
- public void FatalFormat(IFormatProvider provider, string format, params object[] args)
- {
- return;
- }
-
- public void FatalFormat(string format, params object[] args)
- {
- return;
- }
-
- public void FatalFormat(string format, object arg0, object arg1, object arg2)
- {
- return;
- }
-
- public void FatalFormat(string format, object arg0, object arg1)
- {
- return;
- }
-
- public void FatalFormat(string format, object arg0)
- {
- return;
- }
-
- public void Info(object message, Exception exception)
- {
- return;
- }
-
- public void Info(object message)
- {
- return;
- }
-
- public void InfoFormat(IFormatProvider provider, string format, params object[] args)
- {
- return;
- }
-
- public void InfoFormat(string format, params object[] args)
- {
- return;
- }
-
- public void InfoFormat(string format, object arg0, object arg1, object arg2)
- {
- return;
- }
-
- public void InfoFormat(string format, object arg0, object arg1)
- {
- return;
- }
-
- public void InfoFormat(string format, object arg0)
- {
- return;
- }
-
- public bool IsDebugEnabled
- {
- get { return true; }
- }
-
- public bool IsErrorEnabled
- {
- get { return false; }
- }
-
- public bool IsFatalEnabled
- {
- get { return false; }
- }
-
- public bool IsInfoEnabled
- {
- get { return false; }
- }
-
- public bool IsWarnEnabled
- {
- get { return false; }
- }
-
- public void Warn(object message, Exception exception)
- {
- return;
- }
-
- public void Warn(object message)
- {
- return;
- }
-
- public void WarnFormat(IFormatProvider provider, string format, params object[] args)
- {
- return;
- }
-
- public void WarnFormat(string format, params object[] args)
- {
- return;
- }
-
- public void WarnFormat(string format, object arg0, object arg1, object arg2)
- {
- return;
- }
-
- public void WarnFormat(string format, object arg0, object arg1)
- {
- return;
- }
-
- public void WarnFormat(string format, object arg0)
- {
- return;
- }
- }
-}
View
21 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/Logging/GlimpseLogFactory.cs
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Enyim.Caching;
-
-namespace Couchbase.Glimpse.Logging
-{
- public class GlimpseLogFactory : ILogFactory
- {
- public ILog GetLogger(Type type)
- {
- return new GlimpseLogAdapter();
- }
-
- public ILog GetLogger(string name)
- {
- return new GlimpseLogAdapter();
- }
- }
-}
View
45 src/CouchbaseGlimpseWeb/Couchbase.Glimpse/Logging/GlimpseLogger.cs
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Web;
-
-namespace Couchbase.Glimpse.Logging
-{
- public static class GlimpseLogger
- {
- public static IList<string> DebugMesages
- {
- get { return debugMessages; }
- }
-
- public static void Debug(string message)
- {
- if (HttpContext.Current == null) return;
- debugMessages.Add(message);
- }
-
- private static IList<string> debugMessages
- {
- get
- {
- return getMessages("Debug");
- }
- }
-
- private static List<string> getMessages(string level)
- {
- var key = "CB::" + level;
- var messages = HttpContext.Current.Items[key] as List<string>;
- if (messages == null)
- {
- messages = new List<string>();
- HttpContext.Current.Items[key] = messages;
- }
-
- return messages;
- }
-
-
- }
-}
View
9 ...baseGlimpseWeb/CouchbaseGlimpseWeb.csproj → ...baseGlimpseWeb/CouchbaseGlimpseWeb.csproj
@@ -37,6 +37,9 @@
<Reference Include="Couchbase">
<HintPath>..\packages\CouchbaseNetClient.1.2.2\lib\net40\Couchbase.dll</HintPath>
</Reference>
+ <Reference Include="Couchbase.Glimpse, Version=0.1.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\CouchbaseGlimpse.0.1\lib\net40\Couchbase.Glimpse.dll</HintPath>
+ </Reference>
<Reference Include="CouchbaseModelViews.Framework">
<HintPath>..\packages\CouchbaseModelViews.1.0.0-alpha-4\lib\net40\CouchbaseModelViews.Framework.dll</HintPath>
</Reference>
@@ -238,12 +241,6 @@
<Content Include="Views\Home\Index.cshtml" />
<Content Include="Views\Locations\Details.cshtml" />
</ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Couchbase.Glimpse\Couchbase.Glimpse.csproj">
- <Project>{543E589B-B021-4E59-82FE-EDA6797F3266}</Project>
- <Name>Couchbase.Glimpse</Name>
- </ProjectReference>
- </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
View
0  ...chbaseGlimpseWeb/GlimpseSecurityPolicy.cs → ...chbaseGlimpseWeb/GlimpseSecurityPolicy.cs
File renamed without changes
View
0  ...limpseWeb/CouchbaseGlimpseWeb/Global.asax → src/CouchbaseGlimpseWeb/Global.asax
File renamed without changes
View
6 ...pseWeb/CouchbaseGlimpseWeb/Global.asax.cs → src/CouchbaseGlimpseWeb/Global.asax.cs
@@ -6,6 +6,7 @@
using System.Web.Routing;
using CouchbaseModelViews.Framework;
using System.Reflection;
+using Couchbase.Glimpse.Logging;
namespace CouchbaseGlimpseWeb
{
@@ -36,7 +37,6 @@ public static void RegisterModelViews(IEnumerable<Assembly> assemblies)
builder.AddAssemblies(assemblies.ToList());
var designDocs = builder.Build();
var ddManager = new DesignDocManager();
- ddManager.Create(designDocs);
}
protected void Application_Start()
@@ -47,6 +47,10 @@ protected void Application_Start()
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
+
+ var config = new GlimpseLogConfiguration { IsDebugEnabled = true, IsWarnEnabled = true, IsErrorEnabled = true };
+ config.SourceWhiteList.AddRange(new[] { "PooledSocket", "ConfigHelper" });
+ GlimpseLogger.Configure(config);
}
}
}
View
0  ...pseWeb/CouchbaseGlimpseWeb/Models/Beer.cs → src/CouchbaseGlimpseWeb/Models/Beer.cs
File renamed without changes
View
0  ...chbaseGlimpseWeb/Models/BeerRepository.cs → ...chbaseGlimpseWeb/Models/BeerRepository.cs
File renamed without changes
View
0  ...Web/CouchbaseGlimpseWeb/Models/Brewery.cs → src/CouchbaseGlimpseWeb/Models/Brewery.cs
File renamed without changes
View
0  ...aseGlimpseWeb/Models/BreweryRepository.cs → ...aseGlimpseWeb/Models/BreweryRepository.cs
File renamed without changes
View
0  ...b/CouchbaseGlimpseWeb/Models/ModelBase.cs → src/CouchbaseGlimpseWeb/Models/ModelBase.cs
File renamed without changes
View
0  ...chbaseGlimpseWeb/Models/RepositoryBase.cs → ...chbaseGlimpseWeb/Models/RepositoryBase.cs
File renamed without changes
View
0  ...baseGlimpseWeb/Properties/AssemblyInfo.cs → ...baseGlimpseWeb/Properties/AssemblyInfo.cs
File renamed without changes
View
0  ...6.2/Content/Scripts/jquery-1.6.2-vsdoc.js → ...eGlimpseWeb/Scripts/jquery-1.6.2-vsdoc.js
File renamed without changes
View
0  ...ery.1.6.2/Content/Scripts/jquery-1.6.2.js → ...uchbaseGlimpseWeb/Scripts/jquery-1.6.2.js
File renamed without changes
View
0  ...1.6.2/Content/Scripts/jquery-1.6.2.min.js → ...aseGlimpseWeb/Scripts/jquery-1.6.2.min.js
File renamed without changes
View
0  ....8.11/Content/Scripts/jquery-ui-1.8.11.js → ...aseGlimpseWeb/Scripts/jquery-ui-1.8.11.js
File renamed without changes
View
0  ...1/Content/Scripts/jquery-ui-1.8.11.min.js → ...limpseWeb/Scripts/jquery-ui-1.8.11.min.js
File renamed without changes
View
0  ...ontent/Scripts/jquery.unobtrusive-ajax.js → ...pseWeb/Scripts/jquery.unobtrusive-ajax.js
File renamed without changes
View
0  ...nt/Scripts/jquery.unobtrusive-ajax.min.js → ...eb/Scripts/jquery.unobtrusive-ajax.min.js
File renamed without changes
View
0  .../Content/Scripts/jquery.validate-vsdoc.js → ...impseWeb/Scripts/jquery.validate-vsdoc.js
File renamed without changes
View
0  ...on.1.8/Content/Scripts/jquery.validate.js → ...baseGlimpseWeb/Scripts/jquery.validate.js
File renamed without changes
View
0 