nlog 1.0.0.505

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. data/docs/LICENSE.txt +32 -0
  2. data/docs/NLog.chm +0 -0
  3. data/docs/NLogC FAQ.txt +23 -0
  4. data/docs/README.txt +29 -0
  5. data/docs/examples/ExtendingLoggers/InheritFromLogger/InheritFromLogger.csproj +53 -0
  6. data/docs/examples/ExtendingLoggers/InheritFromLogger/InheritFromLogger.sln +20 -0
  7. data/docs/examples/ExtendingLoggers/InheritFromLogger/NLog.config +16 -0
  8. data/docs/examples/ExtendingLoggers/InheritFromLogger/Program.cs +87 -0
  9. data/docs/examples/ExtendingLoggers/InheritFromLogger/Properties/AssemblyInfo.cs +33 -0
  10. data/docs/examples/ExtendingLoggers/LoggerWrapper/LoggerWrapper.csproj +53 -0
  11. data/docs/examples/ExtendingLoggers/LoggerWrapper/LoggerWrapper.sln +20 -0
  12. data/docs/examples/ExtendingLoggers/LoggerWrapper/NLog.config +12 -0
  13. data/docs/examples/ExtendingLoggers/LoggerWrapper/Program.cs +85 -0
  14. data/docs/examples/ExtendingLoggers/LoggerWrapper/Properties/AssemblyInfo.cs +33 -0
  15. data/docs/examples/ExtendingLoggers/README.html +39 -0
  16. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.csproj +95 -0
  17. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.sln +20 -0
  18. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Global.asax +1 -0
  19. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Global.asax.cs +40 -0
  20. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx +16 -0
  21. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx.cs +30 -0
  22. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx.designer.cs +18 -0
  23. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx +16 -0
  24. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx.cs +32 -0
  25. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx.designer.cs +18 -0
  26. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Properties/AssemblyInfo.cs +10 -0
  27. data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Web.config +22 -0
  28. data/docs/examples/targets/Configuration API/ASPNetTrace/ASPNetTraceTest.csproj +130 -0
  29. data/docs/examples/targets/Configuration API/ASPNetTrace/ASPNetTraceTest.sln +20 -0
  30. data/docs/examples/targets/Configuration API/ASPNetTrace/Global.asax.cs +25 -0
  31. data/docs/examples/targets/Configuration API/ASPNetTrace/README.txt +4 -0
  32. data/docs/examples/targets/Configuration API/ASPNetTrace/global.asax +1 -0
  33. data/docs/examples/targets/Configuration API/ASPNetTrace/test.aspx +23 -0
  34. data/docs/examples/targets/Configuration API/ASPNetTrace/web.config +8 -0
  35. data/docs/examples/targets/Configuration API/All_Targets.sln +320 -0
  36. data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/AsyncWrapper.Wrapping File.csproj +39 -0
  37. data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/AsyncWrapper.Wrapping File.sln +20 -0
  38. data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/Example.cs +27 -0
  39. data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/AutoFlushWrapper.csproj +40 -0
  40. data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/AutoFlushWrapper.sln +20 -0
  41. data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/Example.cs +23 -0
  42. data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/BufferingWrapper.csproj +40 -0
  43. data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/BufferingWrapper.sln +20 -0
  44. data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/Example.cs +24 -0
  45. data/docs/examples/targets/Configuration API/Chainsaw/Simple/Chainsaw.csproj +39 -0
  46. data/docs/examples/targets/Configuration API/Chainsaw/Simple/Chainsaw.sln +20 -0
  47. data/docs/examples/targets/Configuration API/Chainsaw/Simple/Example.cs +21 -0
  48. data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/ColoredConsole.Row Highlighting.csproj +39 -0
  49. data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/ColoredConsole.Row Highlighting.sln +20 -0
  50. data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/Example.cs +44 -0
  51. data/docs/examples/targets/Configuration API/ColoredConsole/Simple/ColoredConsole.csproj +39 -0
  52. data/docs/examples/targets/Configuration API/ColoredConsole/Simple/ColoredConsole.sln +20 -0
  53. data/docs/examples/targets/Configuration API/ColoredConsole/Simple/Example.cs +21 -0
  54. data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/ColoredConsole.Word Highlighting.csproj +39 -0
  55. data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/ColoredConsole.Word Highlighting.sln +20 -0
  56. data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/Example.cs +30 -0
  57. data/docs/examples/targets/Configuration API/Console/Simple/Console.csproj +39 -0
  58. data/docs/examples/targets/Configuration API/Console/Simple/Console.sln +20 -0
  59. data/docs/examples/targets/Configuration API/Console/Simple/Example.cs +16 -0
  60. data/docs/examples/targets/Configuration API/Database/MSSQL/Database.MSSQL.csproj +39 -0
  61. data/docs/examples/targets/Configuration API/Database/MSSQL/Database.MSSQL.sln +20 -0
  62. data/docs/examples/targets/Configuration API/Database/MSSQL/Example.cs +43 -0
  63. data/docs/examples/targets/Configuration API/Database/Oracle.Native/Database.Oracle.Native.csproj +40 -0
  64. data/docs/examples/targets/Configuration API/Database/Oracle.Native/Database.Oracle.Native.sln +20 -0
  65. data/docs/examples/targets/Configuration API/Database/Oracle.Native/Example.cs +28 -0
  66. data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Database.Oracle.OleDb.csproj +40 -0
  67. data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Database.Oracle.OleDb.sln +20 -0
  68. data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Example.cs +26 -0
  69. data/docs/examples/targets/Configuration API/Debug/Simple/Debug.csproj +39 -0
  70. data/docs/examples/targets/Configuration API/Debug/Simple/Debug.sln +20 -0
  71. data/docs/examples/targets/Configuration API/Debug/Simple/Example.cs +22 -0
  72. data/docs/examples/targets/Configuration API/Debugger/Simple/Debugger.csproj +39 -0
  73. data/docs/examples/targets/Configuration API/Debugger/Simple/Debugger.sln +20 -0
  74. data/docs/examples/targets/Configuration API/Debugger/Simple/Example.cs +18 -0
  75. data/docs/examples/targets/Configuration API/EventLog/Simple/EventLog.csproj +39 -0
  76. data/docs/examples/targets/Configuration API/EventLog/Simple/EventLog.sln +20 -0
  77. data/docs/examples/targets/Configuration API/EventLog/Simple/Example.cs +20 -0
  78. data/docs/examples/targets/Configuration API/FallbackGroup/Simple/Example.cs +31 -0
  79. data/docs/examples/targets/Configuration API/FallbackGroup/Simple/FallbackGroup.csproj +40 -0
  80. data/docs/examples/targets/Configuration API/FallbackGroup/Simple/FallbackGroup.sln +20 -0
  81. data/docs/examples/targets/Configuration API/File/Archive1/Example.cs +29 -0
  82. data/docs/examples/targets/Configuration API/File/Archive1/File.Archive1.csproj +39 -0
  83. data/docs/examples/targets/Configuration API/File/Archive1/File.Archive1.sln +20 -0
  84. data/docs/examples/targets/Configuration API/File/Archive2/Example.cs +46 -0
  85. data/docs/examples/targets/Configuration API/File/Archive2/File.Archive2.csproj +39 -0
  86. data/docs/examples/targets/Configuration API/File/Archive2/File.Archive2.sln +20 -0
  87. data/docs/examples/targets/Configuration API/File/Archive3/Example.cs +50 -0
  88. data/docs/examples/targets/Configuration API/File/Archive3/File.Archive3.csproj +39 -0
  89. data/docs/examples/targets/Configuration API/File/Archive3/File.Archive3.sln +20 -0
  90. data/docs/examples/targets/Configuration API/File/Archive4/Example.cs +63 -0
  91. data/docs/examples/targets/Configuration API/File/Archive4/File.Archive4.csproj +39 -0
  92. data/docs/examples/targets/Configuration API/File/Archive4/File.Archive4.sln +20 -0
  93. data/docs/examples/targets/Configuration API/File/Asynchronous/Example.cs +25 -0
  94. data/docs/examples/targets/Configuration API/File/Asynchronous/File.Asynchronous.csproj +39 -0
  95. data/docs/examples/targets/Configuration API/File/Asynchronous/File.Asynchronous.sln +20 -0
  96. data/docs/examples/targets/Configuration API/File/CSV/Example.cs +29 -0
  97. data/docs/examples/targets/Configuration API/File/CSV/File.CSV.csproj +39 -0
  98. data/docs/examples/targets/Configuration API/File/CSV/File.CSV.sln +20 -0
  99. data/docs/examples/targets/Configuration API/File/Multiple/Example.cs +19 -0
  100. data/docs/examples/targets/Configuration API/File/Multiple/File.Multiple.csproj +39 -0
  101. data/docs/examples/targets/Configuration API/File/Multiple/File.Multiple.sln +20 -0
  102. data/docs/examples/targets/Configuration API/File/Multiple2/Example.cs +19 -0
  103. data/docs/examples/targets/Configuration API/File/Multiple2/File.Multiple2.csproj +39 -0
  104. data/docs/examples/targets/Configuration API/File/Multiple2/File.Multiple2.sln +20 -0
  105. data/docs/examples/targets/Configuration API/File/Simple/Example.cs +19 -0
  106. data/docs/examples/targets/Configuration API/File/Simple/File.csproj +39 -0
  107. data/docs/examples/targets/Configuration API/File/Simple/File.sln +20 -0
  108. data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/Example.cs +28 -0
  109. data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/FilteringWrapper.csproj +40 -0
  110. data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/FilteringWrapper.sln +20 -0
  111. data/docs/examples/targets/Configuration API/FormControl/Example.cs +22 -0
  112. data/docs/examples/targets/Configuration API/FormControl/Form1.Designer.cs +62 -0
  113. data/docs/examples/targets/Configuration API/FormControl/Form1.cs +36 -0
  114. data/docs/examples/targets/Configuration API/FormControl/Form1.resx +120 -0
  115. data/docs/examples/targets/Configuration API/FormControl/FormControl.csproj +81 -0
  116. data/docs/examples/targets/Configuration API/FormControl/FormControl.sln +20 -0
  117. data/docs/examples/targets/Configuration API/FormControl/Properties/AssemblyInfo.cs +33 -0
  118. data/docs/examples/targets/Configuration API/FormControl/Properties/Resources.Designer.cs +71 -0
  119. data/docs/examples/targets/Configuration API/FormControl/Properties/Resources.resx +117 -0
  120. data/docs/examples/targets/Configuration API/FormControl/Properties/Settings.Designer.cs +30 -0
  121. data/docs/examples/targets/Configuration API/FormControl/Properties/Settings.settings +7 -0
  122. data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/Example.cs +28 -0
  123. data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/MSMQ.Multiple Queues.csproj +39 -0
  124. data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/MSMQ.Multiple Queues.sln +20 -0
  125. data/docs/examples/targets/Configuration API/MSMQ/Simple/Example.cs +28 -0
  126. data/docs/examples/targets/Configuration API/MSMQ/Simple/MSMQ.csproj +39 -0
  127. data/docs/examples/targets/Configuration API/MSMQ/Simple/MSMQ.sln +20 -0
  128. data/docs/examples/targets/Configuration API/Mail/Buffered/Example.cs +48 -0
  129. data/docs/examples/targets/Configuration API/Mail/Buffered/Mail.Buffered.csproj +39 -0
  130. data/docs/examples/targets/Configuration API/Mail/Buffered/Mail.Buffered.sln +20 -0
  131. data/docs/examples/targets/Configuration API/Mail/Simple/Example.cs +33 -0
  132. data/docs/examples/targets/Configuration API/Mail/Simple/Mail.csproj +39 -0
  133. data/docs/examples/targets/Configuration API/Mail/Simple/Mail.sln +20 -0
  134. data/docs/examples/targets/Configuration API/Memory/Simple/Example.cs +23 -0
  135. data/docs/examples/targets/Configuration API/Memory/Simple/Memory.csproj +39 -0
  136. data/docs/examples/targets/Configuration API/Memory/Simple/Memory.sln +20 -0
  137. data/docs/examples/targets/Configuration API/MessageBox/Simple/Example.cs +19 -0
  138. data/docs/examples/targets/Configuration API/MessageBox/Simple/MessageBox.csproj +39 -0
  139. data/docs/examples/targets/Configuration API/MessageBox/Simple/MessageBox.sln +20 -0
  140. data/docs/examples/targets/Configuration API/MethodCall/Simple/Example.cs +27 -0
  141. data/docs/examples/targets/Configuration API/MethodCall/Simple/MethodCall.csproj +39 -0
  142. data/docs/examples/targets/Configuration API/MethodCall/Simple/MethodCall.sln +20 -0
  143. data/docs/examples/targets/Configuration API/NLogViewer/Simple/Example.cs +21 -0
  144. data/docs/examples/targets/Configuration API/NLogViewer/Simple/NLogViewer.csproj +39 -0
  145. data/docs/examples/targets/Configuration API/NLogViewer/Simple/NLogViewer.sln +20 -0
  146. data/docs/examples/targets/Configuration API/Network/Simple/Example.cs +22 -0
  147. data/docs/examples/targets/Configuration API/Network/Simple/Network.csproj +39 -0
  148. data/docs/examples/targets/Configuration API/Network/Simple/Network.sln +20 -0
  149. data/docs/examples/targets/Configuration API/Null/Simple/Example.cs +19 -0
  150. data/docs/examples/targets/Configuration API/Null/Simple/Null.csproj +40 -0
  151. data/docs/examples/targets/Configuration API/Null/Simple/Null.sln +20 -0
  152. data/docs/examples/targets/Configuration API/OutputDebugString/Simple/Example.cs +19 -0
  153. data/docs/examples/targets/Configuration API/OutputDebugString/Simple/OutputDebugString.csproj +40 -0
  154. data/docs/examples/targets/Configuration API/OutputDebugString/Simple/OutputDebugString.sln +20 -0
  155. data/docs/examples/targets/Configuration API/PerfCounter/Simple/Example.cs +24 -0
  156. data/docs/examples/targets/Configuration API/PerfCounter/Simple/PerfCounter.csproj +40 -0
  157. data/docs/examples/targets/Configuration API/PerfCounter/Simple/PerfCounter.sln +20 -0
  158. data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/Example.cs +41 -0
  159. data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/PostFilteringWrapper.csproj +40 -0
  160. data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/PostFilteringWrapper.sln +20 -0
  161. data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/Example.cs +27 -0
  162. data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/RandomizeGroup.csproj +40 -0
  163. data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/RandomizeGroup.sln +20 -0
  164. data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/Example.cs +24 -0
  165. data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/RepeatingWrapper.csproj +40 -0
  166. data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/RepeatingWrapper.sln +20 -0
  167. data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/Example.cs +25 -0
  168. data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/RetryingWrapper.csproj +40 -0
  169. data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/RetryingWrapper.sln +20 -0
  170. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Example.cs +22 -0
  171. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.Designer.cs +61 -0
  172. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.cs +46 -0
  173. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.resx +120 -0
  174. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/AssemblyInfo.cs +33 -0
  175. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Resources.Designer.cs +71 -0
  176. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Resources.resx +117 -0
  177. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.Designer.cs +30 -0
  178. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.settings +7 -0
  179. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.csproj +81 -0
  180. data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.sln +20 -0
  181. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Example.cs +22 -0
  182. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.Designer.cs +61 -0
  183. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.cs +36 -0
  184. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.resx +120 -0
  185. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/AssemblyInfo.cs +33 -0
  186. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Resources.Designer.cs +71 -0
  187. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Resources.resx +117 -0
  188. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Settings.Designer.cs +30 -0
  189. data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Settings.settings +7 -0
  190. data/docs/examples/targets/Configuration API/RichTextBox/Simple/RichTextBox.csproj +81 -0
  191. data/docs/examples/targets/Configuration API/RichTextBox/Simple/RichTextBox.sln +20 -0
  192. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Example.cs +22 -0
  193. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.Designer.cs +61 -0
  194. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.cs +46 -0
  195. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.resx +120 -0
  196. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/AssemblyInfo.cs +33 -0
  197. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Resources.Designer.cs +71 -0
  198. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Resources.resx +117 -0
  199. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Settings.Designer.cs +30 -0
  200. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Settings.settings +7 -0
  201. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/RichTextBox.WordColoring.csproj +81 -0
  202. data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/RichTextBox.WordColoring.sln +20 -0
  203. data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/Example.cs +27 -0
  204. data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/RoundRobinGroup.csproj +40 -0
  205. data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/RoundRobinGroup.sln +20 -0
  206. data/docs/examples/targets/Configuration API/SplitGroup/Simple/Example.cs +27 -0
  207. data/docs/examples/targets/Configuration API/SplitGroup/Simple/SplitGroup.csproj +40 -0
  208. data/docs/examples/targets/Configuration API/SplitGroup/Simple/SplitGroup.sln +20 -0
  209. data/docs/examples/targets/Configuration API/Template.csproj +39 -0
  210. data/docs/examples/targets/Configuration API/Template.sln +20 -0
  211. data/docs/examples/targets/Configuration API/Trace/Simple/Example.cs +21 -0
  212. data/docs/examples/targets/Configuration API/Trace/Simple/Trace.csproj +40 -0
  213. data/docs/examples/targets/Configuration API/Trace/Simple/Trace.sln +20 -0
  214. data/docs/examples/targets/Configuration API/WebService/Simple/Example.cs +28 -0
  215. data/docs/examples/targets/Configuration API/WebService/Simple/WebService.csproj +39 -0
  216. data/docs/examples/targets/Configuration API/WebService/Simple/WebService.sln +26 -0
  217. data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Properties/AssemblyInfo.cs +13 -0
  218. data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Service1.asmx +1 -0
  219. data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Service1.asmx.cs +24 -0
  220. data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Web.config +36 -0
  221. data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/WebService1.csproj +77 -0
  222. data/docs/examples/targets/Configuration API/makeproject.pl +37 -0
  223. data/docs/examples/targets/Configuration File/ASPNetBufferingWrapper/web.nlog +15 -0
  224. data/docs/examples/targets/Configuration File/ASPNetTrace/web.nlog +10 -0
  225. data/docs/examples/targets/Configuration File/AsyncWrapper/NLog.config +17 -0
  226. data/docs/examples/targets/Configuration File/AutoFlushWrapper/NLog.config +13 -0
  227. data/docs/examples/targets/Configuration File/BufferingWrapper/NLog.config +13 -0
  228. data/docs/examples/targets/Configuration File/Chainsaw/NLog.config +11 -0
  229. data/docs/examples/targets/Configuration File/ColoredConsole/Row Highlighting/NLog.config +14 -0
  230. data/docs/examples/targets/Configuration File/ColoredConsole/Simple/NLog.config +12 -0
  231. data/docs/examples/targets/Configuration File/ColoredConsole/Word Highlighting/NLog.config +14 -0
  232. data/docs/examples/targets/Configuration File/Console/NLog.config +11 -0
  233. data/docs/examples/targets/Configuration File/Database/MSSQL/NLog.config +30 -0
  234. data/docs/examples/targets/Configuration File/Database/MSSQL/create_nlog_database.bat +21 -0
  235. data/docs/examples/targets/Configuration File/Database/MSSQL/create_nlog_database.sql +35 -0
  236. data/docs/examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.bat +19 -0
  237. data/docs/examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.sql +4 -0
  238. data/docs/examples/targets/Configuration File/Database/Oracle.Native/NLog.config +23 -0
  239. data/docs/examples/targets/Configuration File/Database/Oracle.OleDb/NLog.config +22 -0
  240. data/docs/examples/targets/Configuration File/Debug/NLog.config +11 -0
  241. data/docs/examples/targets/Configuration File/Debugger/NLog.config +11 -0
  242. data/docs/examples/targets/Configuration File/EventLog/NLog.config +11 -0
  243. data/docs/examples/targets/Configuration File/FallbackGroup/NLog.config +14 -0
  244. data/docs/examples/targets/Configuration File/File/Archive1/NLog.config +20 -0
  245. data/docs/examples/targets/Configuration File/File/Archive2/NLog.config +20 -0
  246. data/docs/examples/targets/Configuration File/File/Archive3/NLog.config +22 -0
  247. data/docs/examples/targets/Configuration File/File/Archive4/NLog.config +22 -0
  248. data/docs/examples/targets/Configuration File/File/Asynchronous/NLog.config +18 -0
  249. data/docs/examples/targets/Configuration File/File/CSV/NLog.config +18 -0
  250. data/docs/examples/targets/Configuration File/File/Multiple/NLog.config +14 -0
  251. data/docs/examples/targets/Configuration File/File/Multiple2/NLog.config +14 -0
  252. data/docs/examples/targets/Configuration File/File/Simple/NLog.config +16 -0
  253. data/docs/examples/targets/Configuration File/FilteringWrapper/NLog.config +13 -0
  254. data/docs/examples/targets/Configuration File/FormControl/NLog.config +12 -0
  255. data/docs/examples/targets/Configuration File/MSMQ/Multiple/NLog.config +17 -0
  256. data/docs/examples/targets/Configuration File/MSMQ/Simple/NLog.config +17 -0
  257. data/docs/examples/targets/Configuration File/Mail/Buffered/NLog.config +18 -0
  258. data/docs/examples/targets/Configuration File/Mail/Simple/NLog.config +16 -0
  259. data/docs/examples/targets/Configuration File/Memory/NLog.config +11 -0
  260. data/docs/examples/targets/Configuration File/MessageBox/NLog.config +11 -0
  261. data/docs/examples/targets/Configuration File/MethodCall/NLog.config +14 -0
  262. data/docs/examples/targets/Configuration File/NLogViewer/NLog.config +11 -0
  263. data/docs/examples/targets/Configuration File/Network/NLog.config +11 -0
  264. data/docs/examples/targets/Configuration File/Null/NLog.config +11 -0
  265. data/docs/examples/targets/Configuration File/OutputDebugString/NLog.config +11 -0
  266. data/docs/examples/targets/Configuration File/PerfCounter/NLog.config +12 -0
  267. data/docs/examples/targets/Configuration File/PostFilteringWrapper/NLog.config +16 -0
  268. data/docs/examples/targets/Configuration File/RandomizeGroup/NLog.config +14 -0
  269. data/docs/examples/targets/Configuration File/RepeatingWrapper/NLog.config +13 -0
  270. data/docs/examples/targets/Configuration File/RetryingWrapper/NLog.config +13 -0
  271. data/docs/examples/targets/Configuration File/RichTextBox/RowColoring/NLog.config +14 -0
  272. data/docs/examples/targets/Configuration File/RichTextBox/Simple/NLog.config +12 -0
  273. data/docs/examples/targets/Configuration File/RichTextBox/WordColoring/NLog.config +14 -0
  274. data/docs/examples/targets/Configuration File/RoundRobinGroup/NLog.config +14 -0
  275. data/docs/examples/targets/Configuration File/SplitGroup/NLog.config +14 -0
  276. data/docs/examples/targets/Configuration File/Trace/NLog.config +11 -0
  277. data/docs/examples/targets/Configuration File/WebService/NLog.config +17 -0
  278. data/docs/examples/targets/Configuration File/WebService/WebService1/Properties/AssemblyInfo.cs +13 -0
  279. data/docs/examples/targets/Configuration File/WebService/WebService1/Service1.asmx +1 -0
  280. data/docs/examples/targets/Configuration File/WebService/WebService1/Service1.asmx.cs +24 -0
  281. data/docs/examples/targets/Configuration File/WebService/WebService1/Web.config +36 -0
  282. data/docs/examples/targets/Configuration File/WebService/WebService1/WebService1.csproj +77 -0
  283. data/docs/examples/targets/Configuration File/WebService/WebService1/WebService1.sln +20 -0
  284. data/docs/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput1.gif +0 -0
  285. data/docs/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput2.gif +0 -0
  286. data/docs/examples/targets/Screenshots/ColoredConsole/Row Highlighting.gif +0 -0
  287. data/docs/examples/targets/Screenshots/ColoredConsole/Simple.gif +0 -0
  288. data/docs/examples/targets/Screenshots/ColoredConsole/Word Highlighting.gif +0 -0
  289. data/docs/examples/targets/Screenshots/FormControl/FormControl.gif +0 -0
  290. data/docs/examples/targets/Screenshots/MessageBox/MessageBoxTarget.gif +0 -0
  291. data/docs/examples/targets/Screenshots/Network/Output.gif +0 -0
  292. data/docs/examples/targets/Screenshots/RichTextBox/RowColoring.gif +0 -0
  293. data/docs/examples/targets/Screenshots/RichTextBox/Simple.gif +0 -0
  294. data/docs/examples/targets/Screenshots/RichTextBox/WordColoring.gif +0 -0
  295. data/docs/examples/web/AddFilter.cs +6 -0
  296. data/docs/examples/web/AddLayoutRenderer.cs +6 -0
  297. data/docs/examples/web/AddTarget.cs +6 -0
  298. data/docs/examples/web/GetCurrentClassLogger.cs +11 -0
  299. data/docs/examples/web/GetLogger.cs +11 -0
  300. data/docs/examples/web/MyFirstFilter.cs +35 -0
  301. data/docs/examples/web/MyFirstLayoutRenderer.cs +41 -0
  302. data/docs/examples/web/MyFirstTarget.cs +28 -0
  303. data/docs/examples/web/NLogC.cpp +26 -0
  304. data/docs/examples/web/NLogCdef.cpp +28 -0
  305. data/docs/examples/web/Performance.cs +16 -0
  306. data/docs/examples/web/app.config +10 -0
  307. data/docs/examples/web/article1.cs +21 -0
  308. data/docs/examples/web/article2.cs +33 -0
  309. data/docs/examples/web/article3.nlog +9 -0
  310. data/docs/examples/web/article4.nlog +9 -0
  311. data/docs/examples/web/article5.nlog +24 -0
  312. data/docs/examples/web/article6.nlog +7 -0
  313. data/docs/examples/web/benchmark_log4net.cs +30 -0
  314. data/docs/examples/web/benchmark_nlog.cs +29 -0
  315. data/docs/examples/web/config1.nlog +4 -0
  316. data/docs/examples/web/config10.nlog +18 -0
  317. data/docs/examples/web/config11.nlog +14 -0
  318. data/docs/examples/web/config12.nlog +4 -0
  319. data/docs/examples/web/config2.nlog +3 -0
  320. data/docs/examples/web/config3.nlog +24 -0
  321. data/docs/examples/web/config4.nlog +25 -0
  322. data/docs/examples/web/config5.nlog +10 -0
  323. data/docs/examples/web/config6.nlog +23 -0
  324. data/docs/examples/web/config7.nlog +14 -0
  325. data/docs/examples/web/config8.nlog +9 -0
  326. data/docs/examples/web/config8a.nlog +9 -0
  327. data/docs/examples/web/config9.nlog +14 -0
  328. data/docs/examples/web/test.js +44 -0
  329. data/docs/examples/web/test.vbs +46 -0
  330. data/docs/examples/web/tutorial.cs +37 -0
  331. data/lib/Mono 1.0/NLog.dll +0 -0
  332. data/lib/Mono 1.0/NLog.xml +12948 -0
  333. data/lib/Mono 1.0/NLog.xsd +1566 -0
  334. data/lib/Mono 1.0/Policy.1.0.NLog.dll +0 -0
  335. data/lib/Mono 1.0/Policy.1.0.NLog.xml +11 -0
  336. data/lib/Mono 2.0/NLog.dll +0 -0
  337. data/lib/Mono 2.0/NLog.xml +12969 -0
  338. data/lib/Mono 2.0/NLog.xsd +1566 -0
  339. data/lib/Mono 2.0/Policy.1.0.NLog.dll +0 -0
  340. data/lib/Mono 2.0/Policy.1.0.NLog.xml +11 -0
  341. metadata +410 -0
@@ -0,0 +1,4 @@
1
+ drop database NLogDatabase
2
+ go
3
+ exec sp_droplogin 'nloguser'
4
+ go
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <!-- configuration contributed by David Maly -->
6
+
7
+ <targets>
8
+ <target name="database" xsi:type="Database" keepConnection="false" useTransactions="true"
9
+ dbProvider="System.Data.OracleClient.OracleConnection,System.Data.OracleClient, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
10
+ connectionString="Data Source=MYORACLEDB;User Id=DBO;Password=MYPASSWORD;Integrated Security=no;"
11
+ commandText="insert into LOGTABLE( TIME_STAMP,LOGLEVEL,LOGGER,CALLSITE,MESSAGE) values( :TIME_STAMP,:LOGLEVEL,:LOGGER,:CALLSITE,:MESSAGE)">
12
+ <parameter name="TIME_STAMP" layout="${longdate}" />
13
+ <parameter name="LOGLEVEL" layout="${level:uppercase=true}" />
14
+ <parameter name="LOGGER" layout="${logger}" />
15
+ <parameter name="CALLSITE" layout="${callsite:filename=true}" />
16
+ <parameter name="MESSAGE" layout="${message}" />
17
+ </target>
18
+ </targets>
19
+
20
+ <rules>
21
+ <logger name="*" minlevel="Debug" writeTo="database" />
22
+ </rules>
23
+ </nlog>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <!-- configuration contributed by David Maly -->
6
+
7
+ <targets>
8
+ <target name="database" xsi:type="Database" keepConnection="false" useTransactions="true" dbProvider="oledb"
9
+ connectionString="Provider=msdaora;Data Source=MYORACLEDB;User Id=DBO;Password=MYPASSWORD;"
10
+ commandText="insert into LOGTABLE( TIME_STAMP,LOGLEVEL,LOGGER,CALLSITE,MESSAGE) values(?,?,?,?,?)">
11
+ <parameter name="TIME_STAMP" layout="${longdate}" />
12
+ <parameter name="LOGLEVEL" layout="${level:uppercase=true}" />
13
+ <parameter name="LOGGER" layout="${logger}" />
14
+ <parameter name="CALLSITE" layout="${callsite:filename=true}" />
15
+ <parameter name="MESSAGE" layout="${message}" />
16
+ </target>
17
+ </targets>
18
+
19
+ <rules>
20
+ <logger name="*" minlevel="Debug" writeTo="database" />
21
+ </rules>
22
+ </nlog>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="debug" xsi:type="Debug" layout="${message}" />
6
+ </targets>
7
+
8
+ <rules>
9
+ <logger name="*" minlevel="Info" writeTo="debug" />
10
+ </rules>
11
+ </nlog>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="debugger" xsi:type="Debugger" layout="${message}" />
6
+ </targets>
7
+
8
+ <rules>
9
+ <logger name="*" minlevel="Info" writeTo="debugger" />
10
+ </rules>
11
+ </nlog>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="eventlog" xsi:type="EventLog" layout="${logger}: ${message}" source="My Source" log="Application" />
6
+ </targets>
7
+
8
+ <rules>
9
+ <logger name="*" minlevel="Debug" writeTo="eventlog" />
10
+ </rules>
11
+ </nlog>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="file" xsi:type="FallbackGroup" returnToFirstOnSuccess="false">
6
+ <target xsi:type="File" fileName="\\server1\share\file1.txt" />
7
+ <target xsi:type="File" fileName="\\server2\share\file1.txt" />
8
+ </target>
9
+ </targets>
10
+
11
+ <rules>
12
+ <logger name="*" minlevel="Debug" writeTo="file" />
13
+ </rules>
14
+ </nlog>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="file" xsi:type="File"
7
+ layout="${longdate} ${logger} ${message}"
8
+ fileName="${basedir}/logs/logfile.txt"
9
+ archiveFileName="${basedir}/archives/log.{#####}.txt"
10
+ archiveAboveSize="10240"
11
+ archiveNumbering="Sequence"
12
+ concurrentWrites="true"
13
+ keepFileOpen="false"
14
+ encoding="iso-8859-2" />
15
+ </targets>
16
+
17
+ <rules>
18
+ <logger name="*" minlevel="Debug" writeTo="file" />
19
+ </rules>
20
+ </nlog>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="file" xsi:type="File"
7
+ layout="${longdate} ${logger} ${message}"
8
+ fileName="${basedir}/logs/logfile.txt"
9
+ archiveFileName="${basedir}/archives/log.{#####}.txt"
10
+ archiveEvery="Minute"
11
+ archiveNumbering="Rolling"
12
+ concurrentWrites="true"
13
+ keepFileOpen="false"
14
+ encoding="iso-8859-2" />
15
+ </targets>
16
+
17
+ <rules>
18
+ <logger name="*" minlevel="Debug" writeTo="file" />
19
+ </rules>
20
+ </nlog>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="file" xsi:type="File"
7
+ layout="${longdate} ${logger} ${message}"
8
+ fileName="${basedir}/logs/logfile.txt"
9
+ archiveFileName="${basedir}/archives/log.{#####}.txt"
10
+ archiveEvery="Minute"
11
+ archiveAboveSize="10000"
12
+ archiveNumbering="Rolling"
13
+ maxArchiveFiles="3"
14
+ concurrentWrites="true"
15
+ keepFileOpen="false"
16
+ encoding="iso-8859-2" />
17
+ </targets>
18
+
19
+ <rules>
20
+ <logger name="*" minlevel="Debug" writeTo="file" />
21
+ </rules>
22
+ </nlog>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="file" xsi:type="File"
7
+ layout="${longdate} ${logger} ${message}"
8
+ fileName="${basedir}/logs/logfile.${level}.txt"
9
+ archiveFileName="${basedir}/archives/${level}/log.{#####}.txt"
10
+ archiveEvery="Minute"
11
+ archiveAboveSize="10000"
12
+ archiveNumbering="Rolling"
13
+ maxArchiveFiles="3"
14
+ concurrentWrites="true"
15
+ keepFileOpen="false"
16
+ encoding="iso-8859-2" />
17
+ </targets>
18
+
19
+ <rules>
20
+ <logger name="*" minlevel="Debug" writeTo="file" />
21
+ </rules>
22
+ </nlog>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <!-- Log in a separate thread, possibly queueing up to
7
+ 5000 messages. When the queue overflows, discard any
8
+ extra messages-->
9
+
10
+ <target name="file" xsi:type="AsyncWrapper" queueLimit="5000" overflowAction="Discard">
11
+ <target xsi:type="File" fileName="${basedir}/logs/${level}.txt" />
12
+ </target>
13
+ </targets>
14
+
15
+ <rules>
16
+ <logger name="*" minlevel="Debug" writeTo="file" />
17
+ </rules>
18
+ </nlog>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="csv" xsi:type="File" fileName="${basedir}/file.csv">
6
+ <layout xsi:type="CSVLayout">
7
+ <column name="time" layout="${longdate}" />
8
+ <column name="message" layout="${message}" />
9
+ <column name="logger" layout="${logger}"/>
10
+ <column name="level" layout="${level}"/>
11
+ </layout>
12
+ </target>
13
+ </targets>
14
+
15
+ <rules>
16
+ <logger name="*" minlevel="Debug" writeTo="csv" />
17
+ </rules>
18
+ </nlog>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="file" xsi:type="File"
7
+ layout="${longdate} ${logger} ${message}"
8
+ fileName="${basedir}/${level}.log" />
9
+ </targets>
10
+
11
+ <rules>
12
+ <logger name="*" minlevel="Debug" writeTo="file" />
13
+ </rules>
14
+ </nlog>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="file" xsi:type="File"
7
+ layout="${longdate} ${logger} ${message}"
8
+ fileName="${basedir}/${shortdate}/${windows-identity:domain=false}.${level}.log" />
9
+ </targets>
10
+
11
+ <rules>
12
+ <logger name="*" minlevel="Debug" writeTo="file" />
13
+ </rules>
14
+ </nlog>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="file" xsi:type="File"
7
+ layout="${longdate} ${logger} ${message}"
8
+ fileName="${basedir}/logs/logfile.txt"
9
+ keepFileOpen="false"
10
+ encoding="iso-8859-2" />
11
+ </targets>
12
+
13
+ <rules>
14
+ <logger name="*" minlevel="Debug" writeTo="file" />
15
+ </rules>
16
+ </nlog>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="file" xsi:type="FilteringWrapper" condition="contains('${message}','1')">
6
+ <target xsi:type="File" fileName="${basedir}/file.txt" />
7
+ </target>
8
+ </targets>
9
+
10
+ <rules>
11
+ <logger name="*" minlevel="Debug" writeTo="file" />
12
+ </rules>
13
+ </nlog>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="control" xsi:type="FormControl" append="true" controlName="textBox1" formName="Form1" />
7
+ </targets>
8
+
9
+ <rules>
10
+ <logger name="*" minlevel="Debug" writeTo="control" />
11
+ </rules>
12
+ </nlog>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="queue" xsi:type="MSMQ"
7
+ layout="${message}"
8
+ queue=".\private$\nlog.${logger}"
9
+ encoding="iso-8859-2"
10
+ recoverable="true"
11
+ label="${logger}" />
12
+ </targets>
13
+
14
+ <rules>
15
+ <logger name="*" minlevel="Debug" writeTo="queue" />
16
+ </rules>
17
+ </nlog>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="queue" xsi:type="MSMQ"
7
+ layout="${message}"
8
+ queue=".\private$\nlog"
9
+ encoding="iso-8859-2"
10
+ recoverable="true"
11
+ label="${logger}" />
12
+ </targets>
13
+
14
+ <rules>
15
+ <logger name="*" minlevel="Debug" writeTo="queue" />
16
+ </rules>
17
+ </nlog>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="mail" xsi:type="BufferingWrapper" bufferSize="5">
7
+ <target xsi:type="Mail"
8
+ smtpServer="192.168.0.15"
9
+ from="jaak@jkowalski.net"
10
+ to="jaak@jkowalski.net"
11
+ subject="test subject" />
12
+ </target>
13
+ </targets>
14
+
15
+ <rules>
16
+ <logger name="*" minlevel="Debug" writeTo="mail" />
17
+ </rules>
18
+ </nlog>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+
5
+ <targets>
6
+ <target name="mail" xsi:type="Mail"
7
+ smtpServer="192.168.0.15"
8
+ from="jaak@jkowalski.net"
9
+ to="jaak@jkowalski.net"
10
+ subject="test subject" />
11
+ </targets>
12
+
13
+ <rules>
14
+ <logger name="*" minlevel="Debug" writeTo="mail" />
15
+ </rules>
16
+ </nlog>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="memory" xsi:type="Memory" layout="${message}" />
6
+ </targets>
7
+
8
+ <rules>
9
+ <logger name="*" minlevel="Info" writeTo="memory" />
10
+ </rules>
11
+ </nlog>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="msgbox" xsi:type="MessageBox" layout="${longdate}: ${message}" caption="${level}" />
6
+ </targets>
7
+
8
+ <rules>
9
+ <logger name="*" minlevel="Debug" writeTo="msgbox" />
10
+ </rules>
11
+ </nlog>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="m" xsi:type="MethodCall" className="Example, MethodCall" methodName="LogMethod">
6
+ <parameter layout="${level}" />
7
+ <parameter layout="${message}" />
8
+ </target>
9
+ </targets>
10
+
11
+ <rules>
12
+ <logger name="*" minlevel="Debug" writeTo="msgbox" />
13
+ </rules>
14
+ </nlog>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" ?>
2
+ <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
+ <targets>
5
+ <target name="viewer" xsi:type="NLogViewer" address="ucp://localhost:4000" />
6
+ </targets>
7
+
8
+ <rules>
9
+ <logger name="*" minlevel="Debug" writeTo="viewer" />
10
+ </rules>
11
+ </nlog>