nlog 1.0.0.505
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/LICENSE.txt +32 -0
- data/docs/NLog.chm +0 -0
- data/docs/NLogC FAQ.txt +23 -0
- data/docs/README.txt +29 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/InheritFromLogger.csproj +53 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/InheritFromLogger.sln +20 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/NLog.config +16 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/Program.cs +87 -0
- data/docs/examples/ExtendingLoggers/InheritFromLogger/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/LoggerWrapper.csproj +53 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/LoggerWrapper.sln +20 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/NLog.config +12 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/Program.cs +85 -0
- data/docs/examples/ExtendingLoggers/LoggerWrapper/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/ExtendingLoggers/README.html +39 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.csproj +95 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/ASPNetBufferingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Global.asax +1 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Global.asax.cs +40 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx +16 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx.cs +30 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/NormalPage.aspx.designer.cs +18 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx +16 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx.cs +32 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/PageWithWarnings.aspx.designer.cs +18 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Properties/AssemblyInfo.cs +10 -0
- data/docs/examples/targets/Configuration API/ASPNetBufferingWrapper/Web.config +22 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/ASPNetTraceTest.csproj +130 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/ASPNetTraceTest.sln +20 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/Global.asax.cs +25 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/README.txt +4 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/global.asax +1 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/test.aspx +23 -0
- data/docs/examples/targets/Configuration API/ASPNetTrace/web.config +8 -0
- data/docs/examples/targets/Configuration API/All_Targets.sln +320 -0
- data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/AsyncWrapper.Wrapping File.csproj +39 -0
- data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/AsyncWrapper.Wrapping File.sln +20 -0
- data/docs/examples/targets/Configuration API/AsyncWrapper/Wrapping File/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/AutoFlushWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/AutoFlushWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/AutoFlushWrapper/Simple/Example.cs +23 -0
- data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/BufferingWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/BufferingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/BufferingWrapper/Simple/Example.cs +24 -0
- data/docs/examples/targets/Configuration API/Chainsaw/Simple/Chainsaw.csproj +39 -0
- data/docs/examples/targets/Configuration API/Chainsaw/Simple/Chainsaw.sln +20 -0
- data/docs/examples/targets/Configuration API/Chainsaw/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/ColoredConsole.Row Highlighting.csproj +39 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/ColoredConsole.Row Highlighting.sln +20 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Row Highlighting/Example.cs +44 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Simple/ColoredConsole.csproj +39 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Simple/ColoredConsole.sln +20 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/ColoredConsole.Word Highlighting.csproj +39 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/ColoredConsole.Word Highlighting.sln +20 -0
- data/docs/examples/targets/Configuration API/ColoredConsole/Word Highlighting/Example.cs +30 -0
- data/docs/examples/targets/Configuration API/Console/Simple/Console.csproj +39 -0
- data/docs/examples/targets/Configuration API/Console/Simple/Console.sln +20 -0
- data/docs/examples/targets/Configuration API/Console/Simple/Example.cs +16 -0
- data/docs/examples/targets/Configuration API/Database/MSSQL/Database.MSSQL.csproj +39 -0
- data/docs/examples/targets/Configuration API/Database/MSSQL/Database.MSSQL.sln +20 -0
- data/docs/examples/targets/Configuration API/Database/MSSQL/Example.cs +43 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.Native/Database.Oracle.Native.csproj +40 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.Native/Database.Oracle.Native.sln +20 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.Native/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Database.Oracle.OleDb.csproj +40 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Database.Oracle.OleDb.sln +20 -0
- data/docs/examples/targets/Configuration API/Database/Oracle.OleDb/Example.cs +26 -0
- data/docs/examples/targets/Configuration API/Debug/Simple/Debug.csproj +39 -0
- data/docs/examples/targets/Configuration API/Debug/Simple/Debug.sln +20 -0
- data/docs/examples/targets/Configuration API/Debug/Simple/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/Debugger/Simple/Debugger.csproj +39 -0
- data/docs/examples/targets/Configuration API/Debugger/Simple/Debugger.sln +20 -0
- data/docs/examples/targets/Configuration API/Debugger/Simple/Example.cs +18 -0
- data/docs/examples/targets/Configuration API/EventLog/Simple/EventLog.csproj +39 -0
- data/docs/examples/targets/Configuration API/EventLog/Simple/EventLog.sln +20 -0
- data/docs/examples/targets/Configuration API/EventLog/Simple/Example.cs +20 -0
- data/docs/examples/targets/Configuration API/FallbackGroup/Simple/Example.cs +31 -0
- data/docs/examples/targets/Configuration API/FallbackGroup/Simple/FallbackGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/FallbackGroup/Simple/FallbackGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive1/Example.cs +29 -0
- data/docs/examples/targets/Configuration API/File/Archive1/File.Archive1.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive1/File.Archive1.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive2/Example.cs +46 -0
- data/docs/examples/targets/Configuration API/File/Archive2/File.Archive2.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive2/File.Archive2.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive3/Example.cs +50 -0
- data/docs/examples/targets/Configuration API/File/Archive3/File.Archive3.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive3/File.Archive3.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Archive4/Example.cs +63 -0
- data/docs/examples/targets/Configuration API/File/Archive4/File.Archive4.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Archive4/File.Archive4.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Asynchronous/Example.cs +25 -0
- data/docs/examples/targets/Configuration API/File/Asynchronous/File.Asynchronous.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Asynchronous/File.Asynchronous.sln +20 -0
- data/docs/examples/targets/Configuration API/File/CSV/Example.cs +29 -0
- data/docs/examples/targets/Configuration API/File/CSV/File.CSV.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/CSV/File.CSV.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Multiple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/File/Multiple/File.Multiple.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Multiple/File.Multiple.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Multiple2/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/File/Multiple2/File.Multiple2.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Multiple2/File.Multiple2.sln +20 -0
- data/docs/examples/targets/Configuration API/File/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/File/Simple/File.csproj +39 -0
- data/docs/examples/targets/Configuration API/File/Simple/File.sln +20 -0
- data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/FilteringWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/FilteringWrapper/Simple/FilteringWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/FormControl/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/FormControl/Form1.Designer.cs +62 -0
- data/docs/examples/targets/Configuration API/FormControl/Form1.cs +36 -0
- data/docs/examples/targets/Configuration API/FormControl/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/FormControl/FormControl.csproj +81 -0
- data/docs/examples/targets/Configuration API/FormControl/FormControl.sln +20 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/FormControl/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/MSMQ.Multiple Queues.csproj +39 -0
- data/docs/examples/targets/Configuration API/MSMQ/Multiple Queues/MSMQ.Multiple Queues.sln +20 -0
- data/docs/examples/targets/Configuration API/MSMQ/Simple/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/MSMQ/Simple/MSMQ.csproj +39 -0
- data/docs/examples/targets/Configuration API/MSMQ/Simple/MSMQ.sln +20 -0
- data/docs/examples/targets/Configuration API/Mail/Buffered/Example.cs +48 -0
- data/docs/examples/targets/Configuration API/Mail/Buffered/Mail.Buffered.csproj +39 -0
- data/docs/examples/targets/Configuration API/Mail/Buffered/Mail.Buffered.sln +20 -0
- data/docs/examples/targets/Configuration API/Mail/Simple/Example.cs +33 -0
- data/docs/examples/targets/Configuration API/Mail/Simple/Mail.csproj +39 -0
- data/docs/examples/targets/Configuration API/Mail/Simple/Mail.sln +20 -0
- data/docs/examples/targets/Configuration API/Memory/Simple/Example.cs +23 -0
- data/docs/examples/targets/Configuration API/Memory/Simple/Memory.csproj +39 -0
- data/docs/examples/targets/Configuration API/Memory/Simple/Memory.sln +20 -0
- data/docs/examples/targets/Configuration API/MessageBox/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/MessageBox/Simple/MessageBox.csproj +39 -0
- data/docs/examples/targets/Configuration API/MessageBox/Simple/MessageBox.sln +20 -0
- data/docs/examples/targets/Configuration API/MethodCall/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/MethodCall/Simple/MethodCall.csproj +39 -0
- data/docs/examples/targets/Configuration API/MethodCall/Simple/MethodCall.sln +20 -0
- data/docs/examples/targets/Configuration API/NLogViewer/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/NLogViewer/Simple/NLogViewer.csproj +39 -0
- data/docs/examples/targets/Configuration API/NLogViewer/Simple/NLogViewer.sln +20 -0
- data/docs/examples/targets/Configuration API/Network/Simple/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/Network/Simple/Network.csproj +39 -0
- data/docs/examples/targets/Configuration API/Network/Simple/Network.sln +20 -0
- data/docs/examples/targets/Configuration API/Null/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/Null/Simple/Null.csproj +40 -0
- data/docs/examples/targets/Configuration API/Null/Simple/Null.sln +20 -0
- data/docs/examples/targets/Configuration API/OutputDebugString/Simple/Example.cs +19 -0
- data/docs/examples/targets/Configuration API/OutputDebugString/Simple/OutputDebugString.csproj +40 -0
- data/docs/examples/targets/Configuration API/OutputDebugString/Simple/OutputDebugString.sln +20 -0
- data/docs/examples/targets/Configuration API/PerfCounter/Simple/Example.cs +24 -0
- data/docs/examples/targets/Configuration API/PerfCounter/Simple/PerfCounter.csproj +40 -0
- data/docs/examples/targets/Configuration API/PerfCounter/Simple/PerfCounter.sln +20 -0
- data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/Example.cs +41 -0
- data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/PostFilteringWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/PostFilteringWrapper/Simple/PostFilteringWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/RandomizeGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/RandomizeGroup/Simple/RandomizeGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/Example.cs +24 -0
- data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/RepeatingWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/RepeatingWrapper/Simple/RepeatingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/Example.cs +25 -0
- data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/RetryingWrapper.csproj +40 -0
- data/docs/examples/targets/Configuration API/RetryingWrapper/Simple/RetryingWrapper.sln +20 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.Designer.cs +61 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.cs +46 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.csproj +81 -0
- data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.sln +20 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.Designer.cs +61 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.cs +36 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/RichTextBox.csproj +81 -0
- data/docs/examples/targets/Configuration API/RichTextBox/Simple/RichTextBox.sln +20 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Example.cs +22 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.Designer.cs +61 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.cs +46 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Form1.resx +120 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/AssemblyInfo.cs +33 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Resources.Designer.cs +71 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Resources.resx +117 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Settings.Designer.cs +30 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/Properties/Settings.settings +7 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/RichTextBox.WordColoring.csproj +81 -0
- data/docs/examples/targets/Configuration API/RichTextBox/WordColoring/RichTextBox.WordColoring.sln +20 -0
- data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/RoundRobinGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/RoundRobinGroup/Simple/RoundRobinGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/SplitGroup/Simple/Example.cs +27 -0
- data/docs/examples/targets/Configuration API/SplitGroup/Simple/SplitGroup.csproj +40 -0
- data/docs/examples/targets/Configuration API/SplitGroup/Simple/SplitGroup.sln +20 -0
- data/docs/examples/targets/Configuration API/Template.csproj +39 -0
- data/docs/examples/targets/Configuration API/Template.sln +20 -0
- data/docs/examples/targets/Configuration API/Trace/Simple/Example.cs +21 -0
- data/docs/examples/targets/Configuration API/Trace/Simple/Trace.csproj +40 -0
- data/docs/examples/targets/Configuration API/Trace/Simple/Trace.sln +20 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/Example.cs +28 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService.csproj +39 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService.sln +26 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Properties/AssemblyInfo.cs +13 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Service1.asmx +1 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Service1.asmx.cs +24 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/Web.config +36 -0
- data/docs/examples/targets/Configuration API/WebService/Simple/WebService1/WebService1.csproj +77 -0
- data/docs/examples/targets/Configuration API/makeproject.pl +37 -0
- data/docs/examples/targets/Configuration File/ASPNetBufferingWrapper/web.nlog +15 -0
- data/docs/examples/targets/Configuration File/ASPNetTrace/web.nlog +10 -0
- data/docs/examples/targets/Configuration File/AsyncWrapper/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/AutoFlushWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/BufferingWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/Chainsaw/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/ColoredConsole/Row Highlighting/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/ColoredConsole/Simple/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/ColoredConsole/Word Highlighting/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/Console/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/NLog.config +30 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/create_nlog_database.bat +21 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/create_nlog_database.sql +35 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.bat +19 -0
- data/docs/examples/targets/Configuration File/Database/MSSQL/drop_nlog_database.sql +4 -0
- data/docs/examples/targets/Configuration File/Database/Oracle.Native/NLog.config +23 -0
- data/docs/examples/targets/Configuration File/Database/Oracle.OleDb/NLog.config +22 -0
- data/docs/examples/targets/Configuration File/Debug/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Debugger/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/EventLog/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/FallbackGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/File/Archive1/NLog.config +20 -0
- data/docs/examples/targets/Configuration File/File/Archive2/NLog.config +20 -0
- data/docs/examples/targets/Configuration File/File/Archive3/NLog.config +22 -0
- data/docs/examples/targets/Configuration File/File/Archive4/NLog.config +22 -0
- data/docs/examples/targets/Configuration File/File/Asynchronous/NLog.config +18 -0
- data/docs/examples/targets/Configuration File/File/CSV/NLog.config +18 -0
- data/docs/examples/targets/Configuration File/File/Multiple/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/File/Multiple2/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/File/Simple/NLog.config +16 -0
- data/docs/examples/targets/Configuration File/FilteringWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/FormControl/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/MSMQ/Multiple/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/MSMQ/Simple/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/Mail/Buffered/NLog.config +18 -0
- data/docs/examples/targets/Configuration File/Mail/Simple/NLog.config +16 -0
- data/docs/examples/targets/Configuration File/Memory/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/MessageBox/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/MethodCall/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/NLogViewer/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Network/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/Null/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/OutputDebugString/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/PerfCounter/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/PostFilteringWrapper/NLog.config +16 -0
- data/docs/examples/targets/Configuration File/RandomizeGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/RepeatingWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/RetryingWrapper/NLog.config +13 -0
- data/docs/examples/targets/Configuration File/RichTextBox/RowColoring/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/RichTextBox/Simple/NLog.config +12 -0
- data/docs/examples/targets/Configuration File/RichTextBox/WordColoring/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/RoundRobinGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/SplitGroup/NLog.config +14 -0
- data/docs/examples/targets/Configuration File/Trace/NLog.config +11 -0
- data/docs/examples/targets/Configuration File/WebService/NLog.config +17 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Properties/AssemblyInfo.cs +13 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Service1.asmx +1 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Service1.asmx.cs +24 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/Web.config +36 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/WebService1.csproj +77 -0
- data/docs/examples/targets/Configuration File/WebService/WebService1/WebService1.sln +20 -0
- data/docs/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput1.gif +0 -0
- data/docs/examples/targets/Screenshots/ASPNetTrace/ASPNetTraceOutput2.gif +0 -0
- data/docs/examples/targets/Screenshots/ColoredConsole/Row Highlighting.gif +0 -0
- data/docs/examples/targets/Screenshots/ColoredConsole/Simple.gif +0 -0
- data/docs/examples/targets/Screenshots/ColoredConsole/Word Highlighting.gif +0 -0
- data/docs/examples/targets/Screenshots/FormControl/FormControl.gif +0 -0
- data/docs/examples/targets/Screenshots/MessageBox/MessageBoxTarget.gif +0 -0
- data/docs/examples/targets/Screenshots/Network/Output.gif +0 -0
- data/docs/examples/targets/Screenshots/RichTextBox/RowColoring.gif +0 -0
- data/docs/examples/targets/Screenshots/RichTextBox/Simple.gif +0 -0
- data/docs/examples/targets/Screenshots/RichTextBox/WordColoring.gif +0 -0
- data/docs/examples/web/AddFilter.cs +6 -0
- data/docs/examples/web/AddLayoutRenderer.cs +6 -0
- data/docs/examples/web/AddTarget.cs +6 -0
- data/docs/examples/web/GetCurrentClassLogger.cs +11 -0
- data/docs/examples/web/GetLogger.cs +11 -0
- data/docs/examples/web/MyFirstFilter.cs +35 -0
- data/docs/examples/web/MyFirstLayoutRenderer.cs +41 -0
- data/docs/examples/web/MyFirstTarget.cs +28 -0
- data/docs/examples/web/NLogC.cpp +26 -0
- data/docs/examples/web/NLogCdef.cpp +28 -0
- data/docs/examples/web/Performance.cs +16 -0
- data/docs/examples/web/app.config +10 -0
- data/docs/examples/web/article1.cs +21 -0
- data/docs/examples/web/article2.cs +33 -0
- data/docs/examples/web/article3.nlog +9 -0
- data/docs/examples/web/article4.nlog +9 -0
- data/docs/examples/web/article5.nlog +24 -0
- data/docs/examples/web/article6.nlog +7 -0
- data/docs/examples/web/benchmark_log4net.cs +30 -0
- data/docs/examples/web/benchmark_nlog.cs +29 -0
- data/docs/examples/web/config1.nlog +4 -0
- data/docs/examples/web/config10.nlog +18 -0
- data/docs/examples/web/config11.nlog +14 -0
- data/docs/examples/web/config12.nlog +4 -0
- data/docs/examples/web/config2.nlog +3 -0
- data/docs/examples/web/config3.nlog +24 -0
- data/docs/examples/web/config4.nlog +25 -0
- data/docs/examples/web/config5.nlog +10 -0
- data/docs/examples/web/config6.nlog +23 -0
- data/docs/examples/web/config7.nlog +14 -0
- data/docs/examples/web/config8.nlog +9 -0
- data/docs/examples/web/config8a.nlog +9 -0
- data/docs/examples/web/config9.nlog +14 -0
- data/docs/examples/web/test.js +44 -0
- data/docs/examples/web/test.vbs +46 -0
- data/docs/examples/web/tutorial.cs +37 -0
- data/lib/Mono 1.0/NLog.dll +0 -0
- data/lib/Mono 1.0/NLog.xml +12948 -0
- data/lib/Mono 1.0/NLog.xsd +1566 -0
- data/lib/Mono 1.0/Policy.1.0.NLog.dll +0 -0
- data/lib/Mono 1.0/Policy.1.0.NLog.xml +11 -0
- data/lib/Mono 2.0/NLog.dll +0 -0
- data/lib/Mono 2.0/NLog.xml +12969 -0
- data/lib/Mono 2.0/NLog.xsd +1566 -0
- data/lib/Mono 2.0/Policy.1.0.NLog.dll +0 -0
- data/lib/Mono 2.0/Policy.1.0.NLog.xml +11 -0
- metadata +410 -0
data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Resources.resx
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<root>
|
3
|
+
<!--
|
4
|
+
Microsoft ResX Schema
|
5
|
+
|
6
|
+
Version 2.0
|
7
|
+
|
8
|
+
The primary goals of this format is to allow a simple XML format
|
9
|
+
that is mostly human readable. The generation and parsing of the
|
10
|
+
various data types are done through the TypeConverter classes
|
11
|
+
associated with the data types.
|
12
|
+
|
13
|
+
Example:
|
14
|
+
|
15
|
+
... ado.net/XML headers & schema ...
|
16
|
+
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
17
|
+
<resheader name="version">2.0</resheader>
|
18
|
+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
19
|
+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
20
|
+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
21
|
+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
22
|
+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
23
|
+
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
24
|
+
</data>
|
25
|
+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
26
|
+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
27
|
+
<comment>This is a comment</comment>
|
28
|
+
</data>
|
29
|
+
|
30
|
+
There are any number of "resheader" rows that contain simple
|
31
|
+
name/value pairs.
|
32
|
+
|
33
|
+
Each data row contains a name, and value. The row also contains a
|
34
|
+
type or mimetype. Type corresponds to a .NET class that support
|
35
|
+
text/value conversion through the TypeConverter architecture.
|
36
|
+
Classes that don't support this are serialized and stored with the
|
37
|
+
mimetype set.
|
38
|
+
|
39
|
+
The mimetype is used for serialized objects, and tells the
|
40
|
+
ResXResourceReader how to depersist the object. This is currently not
|
41
|
+
extensible. For a given mimetype the value must be set accordingly:
|
42
|
+
|
43
|
+
Note - application/x-microsoft.net.object.binary.base64 is the format
|
44
|
+
that the ResXResourceWriter will generate, however the reader can
|
45
|
+
read any of the formats listed below.
|
46
|
+
|
47
|
+
mimetype: application/x-microsoft.net.object.binary.base64
|
48
|
+
value : The object must be serialized with
|
49
|
+
: System.Serialization.Formatters.Binary.BinaryFormatter
|
50
|
+
: and then encoded with base64 encoding.
|
51
|
+
|
52
|
+
mimetype: application/x-microsoft.net.object.soap.base64
|
53
|
+
value : The object must be serialized with
|
54
|
+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
55
|
+
: and then encoded with base64 encoding.
|
56
|
+
|
57
|
+
mimetype: application/x-microsoft.net.object.bytearray.base64
|
58
|
+
value : The object must be serialized into a byte array
|
59
|
+
: using a System.ComponentModel.TypeConverter
|
60
|
+
: and then encoded with base64 encoding.
|
61
|
+
-->
|
62
|
+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
63
|
+
<xsd:element name="root" msdata:IsDataSet="true">
|
64
|
+
<xsd:complexType>
|
65
|
+
<xsd:choice maxOccurs="unbounded">
|
66
|
+
<xsd:element name="metadata">
|
67
|
+
<xsd:complexType>
|
68
|
+
<xsd:sequence>
|
69
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
70
|
+
</xsd:sequence>
|
71
|
+
<xsd:attribute name="name" type="xsd:string" />
|
72
|
+
<xsd:attribute name="type" type="xsd:string" />
|
73
|
+
<xsd:attribute name="mimetype" type="xsd:string" />
|
74
|
+
</xsd:complexType>
|
75
|
+
</xsd:element>
|
76
|
+
<xsd:element name="assembly">
|
77
|
+
<xsd:complexType>
|
78
|
+
<xsd:attribute name="alias" type="xsd:string" />
|
79
|
+
<xsd:attribute name="name" type="xsd:string" />
|
80
|
+
</xsd:complexType>
|
81
|
+
</xsd:element>
|
82
|
+
<xsd:element name="data">
|
83
|
+
<xsd:complexType>
|
84
|
+
<xsd:sequence>
|
85
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
86
|
+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
87
|
+
</xsd:sequence>
|
88
|
+
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
89
|
+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
90
|
+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
91
|
+
</xsd:complexType>
|
92
|
+
</xsd:element>
|
93
|
+
<xsd:element name="resheader">
|
94
|
+
<xsd:complexType>
|
95
|
+
<xsd:sequence>
|
96
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
97
|
+
</xsd:sequence>
|
98
|
+
<xsd:attribute name="name" type="xsd:string" use="required" />
|
99
|
+
</xsd:complexType>
|
100
|
+
</xsd:element>
|
101
|
+
</xsd:choice>
|
102
|
+
</xsd:complexType>
|
103
|
+
</xsd:element>
|
104
|
+
</xsd:schema>
|
105
|
+
<resheader name="resmimetype">
|
106
|
+
<value>text/microsoft-resx</value>
|
107
|
+
</resheader>
|
108
|
+
<resheader name="version">
|
109
|
+
<value>2.0</value>
|
110
|
+
</resheader>
|
111
|
+
<resheader name="reader">
|
112
|
+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
113
|
+
</resheader>
|
114
|
+
<resheader name="writer">
|
115
|
+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
116
|
+
</resheader>
|
117
|
+
</root>
|
data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/Properties/Settings.Designer.cs
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
//------------------------------------------------------------------------------
|
2
|
+
// <auto-generated>
|
3
|
+
// This code was generated by a tool.
|
4
|
+
// Runtime Version:2.0.50727.42
|
5
|
+
//
|
6
|
+
// Changes to this file may cause incorrect behavior and will be lost if
|
7
|
+
// the code is regenerated.
|
8
|
+
// </auto-generated>
|
9
|
+
//------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
namespace RichTextBox2.Properties
|
12
|
+
{
|
13
|
+
|
14
|
+
|
15
|
+
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
16
|
+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
|
17
|
+
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
18
|
+
{
|
19
|
+
|
20
|
+
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
21
|
+
|
22
|
+
public static Settings Default
|
23
|
+
{
|
24
|
+
get
|
25
|
+
{
|
26
|
+
return defaultInstance;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.csproj
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2
|
+
<PropertyGroup>
|
3
|
+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
4
|
+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
5
|
+
<ProductVersion>8.0.50727</ProductVersion>
|
6
|
+
<SchemaVersion>2.0</SchemaVersion>
|
7
|
+
<ProjectGuid>{0D0CED51-E850-4107-81F8-910F234E0F81}</ProjectGuid>
|
8
|
+
<OutputType>WinExe</OutputType>
|
9
|
+
<AppDesignerFolder>Properties</AppDesignerFolder>
|
10
|
+
<RootNamespace>RichTextBox.RowColoring</RootNamespace>
|
11
|
+
<AssemblyName>RichTextBox.RowColoring</AssemblyName>
|
12
|
+
</PropertyGroup>
|
13
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
14
|
+
<DebugSymbols>true</DebugSymbols>
|
15
|
+
<DebugType>full</DebugType>
|
16
|
+
<Optimize>false</Optimize>
|
17
|
+
<OutputPath>bin\Debug\</OutputPath>
|
18
|
+
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
19
|
+
<ErrorReport>prompt</ErrorReport>
|
20
|
+
<WarningLevel>4</WarningLevel>
|
21
|
+
</PropertyGroup>
|
22
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
23
|
+
<DebugType>pdbonly</DebugType>
|
24
|
+
<Optimize>true</Optimize>
|
25
|
+
<OutputPath>bin\Release\</OutputPath>
|
26
|
+
<DefineConstants>TRACE</DefineConstants>
|
27
|
+
<ErrorReport>prompt</ErrorReport>
|
28
|
+
<WarningLevel>4</WarningLevel>
|
29
|
+
</PropertyGroup>
|
30
|
+
<ItemGroup>
|
31
|
+
<Reference Include="NLog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
32
|
+
<SpecificVersion>False</SpecificVersion>
|
33
|
+
<HintPath>..\..\..\..\..\build\net-2.0\bin\NLog.dll</HintPath>
|
34
|
+
</Reference>
|
35
|
+
<Reference Include="System" />
|
36
|
+
<Reference Include="System.Data" />
|
37
|
+
<Reference Include="System.Drawing" />
|
38
|
+
<Reference Include="System.Windows.Forms" />
|
39
|
+
<Reference Include="System.Xml" />
|
40
|
+
</ItemGroup>
|
41
|
+
<ItemGroup>
|
42
|
+
<Compile Include="Form1.cs">
|
43
|
+
<SubType>Form</SubType>
|
44
|
+
</Compile>
|
45
|
+
<Compile Include="Form1.Designer.cs">
|
46
|
+
<DependentUpon>Form1.cs</DependentUpon>
|
47
|
+
</Compile>
|
48
|
+
<Compile Include="Example.cs" />
|
49
|
+
<Compile Include="Properties\AssemblyInfo.cs" />
|
50
|
+
<EmbeddedResource Include="Form1.resx">
|
51
|
+
<SubType>Designer</SubType>
|
52
|
+
<DependentUpon>Form1.cs</DependentUpon>
|
53
|
+
</EmbeddedResource>
|
54
|
+
<EmbeddedResource Include="Properties\Resources.resx">
|
55
|
+
<Generator>ResXFileCodeGenerator</Generator>
|
56
|
+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
57
|
+
<SubType>Designer</SubType>
|
58
|
+
</EmbeddedResource>
|
59
|
+
<Compile Include="Properties\Resources.Designer.cs">
|
60
|
+
<AutoGen>True</AutoGen>
|
61
|
+
<DependentUpon>Resources.resx</DependentUpon>
|
62
|
+
</Compile>
|
63
|
+
<None Include="Properties\Settings.settings">
|
64
|
+
<Generator>SettingsSingleFileGenerator</Generator>
|
65
|
+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
66
|
+
</None>
|
67
|
+
<Compile Include="Properties\Settings.Designer.cs">
|
68
|
+
<AutoGen>True</AutoGen>
|
69
|
+
<DependentUpon>Settings.settings</DependentUpon>
|
70
|
+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
71
|
+
</Compile>
|
72
|
+
</ItemGroup>
|
73
|
+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
74
|
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
75
|
+
Other similar extension points exist, see Microsoft.Common.targets.
|
76
|
+
<Target Name="BeforeBuild">
|
77
|
+
</Target>
|
78
|
+
<Target Name="AfterBuild">
|
79
|
+
</Target>
|
80
|
+
-->
|
81
|
+
</Project>
|
data/docs/examples/targets/Configuration API/RichTextBox/RowColoring/RichTextBox.RowColoring.sln
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
Microsoft Visual Studio Solution File, Format Version 9.00
|
3
|
+
# Visual Studio 2005
|
4
|
+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RichTextBox", "RichTextBox.RowColoring.csproj", "{20449142-40C3-4B1D-8F7C-2D3ED924FDA7}"
|
5
|
+
EndProject
|
6
|
+
Global
|
7
|
+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
8
|
+
Debug|Any CPU = Debug|Any CPU
|
9
|
+
Release|Any CPU = Release|Any CPU
|
10
|
+
EndGlobalSection
|
11
|
+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
12
|
+
{20449142-40C3-4B1D-8F7C-2D3ED924FDA7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
13
|
+
{20449142-40C3-4B1D-8F7C-2D3ED924FDA7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
14
|
+
{20449142-40C3-4B1D-8F7C-2D3ED924FDA7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
15
|
+
{20449142-40C3-4B1D-8F7C-2D3ED924FDA7}.Release|Any CPU.Build.0 = Release|Any CPU
|
16
|
+
EndGlobalSection
|
17
|
+
GlobalSection(SolutionProperties) = preSolution
|
18
|
+
HideSolutionNode = FALSE
|
19
|
+
EndGlobalSection
|
20
|
+
EndGlobal
|
@@ -0,0 +1,22 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Windows.Forms;
|
3
|
+
using NLog;
|
4
|
+
using NLog.Targets;
|
5
|
+
|
6
|
+
namespace RichTextBox2
|
7
|
+
{
|
8
|
+
static class Example
|
9
|
+
{
|
10
|
+
/// <summary>
|
11
|
+
/// The main entry point for the application.
|
12
|
+
/// </summary>
|
13
|
+
[STAThread]
|
14
|
+
static void Main()
|
15
|
+
{
|
16
|
+
Application.EnableVisualStyles();
|
17
|
+
Application.SetCompatibleTextRenderingDefault(false);
|
18
|
+
Application.Run(new Form1());
|
19
|
+
// for NLog configuration look in Form1.cs
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
namespace RichTextBox2
|
2
|
+
{
|
3
|
+
partial class Form1
|
4
|
+
{
|
5
|
+
/// <summary>
|
6
|
+
/// Required designer variable.
|
7
|
+
/// </summary>
|
8
|
+
private System.ComponentModel.IContainer components = null;
|
9
|
+
|
10
|
+
/// <summary>
|
11
|
+
/// Clean up any resources being used.
|
12
|
+
/// </summary>
|
13
|
+
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
14
|
+
protected override void Dispose(bool disposing)
|
15
|
+
{
|
16
|
+
if (disposing && (components != null))
|
17
|
+
{
|
18
|
+
components.Dispose();
|
19
|
+
}
|
20
|
+
base.Dispose(disposing);
|
21
|
+
}
|
22
|
+
|
23
|
+
#region Windows Form Designer generated code
|
24
|
+
|
25
|
+
/// <summary>
|
26
|
+
/// Required method for Designer support - do not modify
|
27
|
+
/// the contents of this method with the code editor.
|
28
|
+
/// </summary>
|
29
|
+
private void InitializeComponent()
|
30
|
+
{
|
31
|
+
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
32
|
+
this.SuspendLayout();
|
33
|
+
//
|
34
|
+
// richTextBox1
|
35
|
+
//
|
36
|
+
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
37
|
+
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
|
38
|
+
this.richTextBox1.Name = "richTextBox1";
|
39
|
+
this.richTextBox1.Size = new System.Drawing.Size(292, 266);
|
40
|
+
this.richTextBox1.TabIndex = 0;
|
41
|
+
this.richTextBox1.Text = "";
|
42
|
+
//
|
43
|
+
// Form1
|
44
|
+
//
|
45
|
+
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
46
|
+
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
47
|
+
this.ClientSize = new System.Drawing.Size(292, 266);
|
48
|
+
this.Controls.Add(this.richTextBox1);
|
49
|
+
this.Name = "Form1";
|
50
|
+
this.Text = "Form1";
|
51
|
+
this.Load += new System.EventHandler(this.Form1_Load);
|
52
|
+
this.ResumeLayout(false);
|
53
|
+
|
54
|
+
}
|
55
|
+
|
56
|
+
#endregion
|
57
|
+
|
58
|
+
private System.Windows.Forms.RichTextBox richTextBox1;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Text;
|
3
|
+
using System.Windows.Forms;
|
4
|
+
using NLog;
|
5
|
+
using NLog.Targets;
|
6
|
+
|
7
|
+
namespace RichTextBox2
|
8
|
+
{
|
9
|
+
public partial class Form1 : Form
|
10
|
+
{
|
11
|
+
public Form1()
|
12
|
+
{
|
13
|
+
InitializeComponent();
|
14
|
+
}
|
15
|
+
|
16
|
+
private void Form1_Load(object sender, EventArgs e)
|
17
|
+
{
|
18
|
+
|
19
|
+
RichTextBoxTarget target = new RichTextBoxTarget();
|
20
|
+
target.Layout = "${date:format=HH\\:MM\\:ss} ${logger} ${message}";
|
21
|
+
target.ControlName = "richTextBox1";
|
22
|
+
target.FormName = "Form1";
|
23
|
+
target.UseDefaultRowColoringRules = true;
|
24
|
+
|
25
|
+
NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Trace);
|
26
|
+
|
27
|
+
Logger logger = LogManager.GetLogger("Example");
|
28
|
+
logger.Trace("trace log message");
|
29
|
+
logger.Debug("debug log message");
|
30
|
+
logger.Info("info log message");
|
31
|
+
logger.Warn("warn log message");
|
32
|
+
logger.Error("error log message");
|
33
|
+
logger.Fatal("fatal log message");
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<root>
|
3
|
+
<!--
|
4
|
+
Microsoft ResX Schema
|
5
|
+
|
6
|
+
Version 2.0
|
7
|
+
|
8
|
+
The primary goals of this format is to allow a simple XML format
|
9
|
+
that is mostly human readable. The generation and parsing of the
|
10
|
+
various data types are done through the TypeConverter classes
|
11
|
+
associated with the data types.
|
12
|
+
|
13
|
+
Example:
|
14
|
+
|
15
|
+
... ado.net/XML headers & schema ...
|
16
|
+
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
17
|
+
<resheader name="version">2.0</resheader>
|
18
|
+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
19
|
+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
20
|
+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
21
|
+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
22
|
+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
23
|
+
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
24
|
+
</data>
|
25
|
+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
26
|
+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
27
|
+
<comment>This is a comment</comment>
|
28
|
+
</data>
|
29
|
+
|
30
|
+
There are any number of "resheader" rows that contain simple
|
31
|
+
name/value pairs.
|
32
|
+
|
33
|
+
Each data row contains a name, and value. The row also contains a
|
34
|
+
type or mimetype. Type corresponds to a .NET class that support
|
35
|
+
text/value conversion through the TypeConverter architecture.
|
36
|
+
Classes that don't support this are serialized and stored with the
|
37
|
+
mimetype set.
|
38
|
+
|
39
|
+
The mimetype is used for serialized objects, and tells the
|
40
|
+
ResXResourceReader how to depersist the object. This is currently not
|
41
|
+
extensible. For a given mimetype the value must be set accordingly:
|
42
|
+
|
43
|
+
Note - application/x-microsoft.net.object.binary.base64 is the format
|
44
|
+
that the ResXResourceWriter will generate, however the reader can
|
45
|
+
read any of the formats listed below.
|
46
|
+
|
47
|
+
mimetype: application/x-microsoft.net.object.binary.base64
|
48
|
+
value : The object must be serialized with
|
49
|
+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
50
|
+
: and then encoded with base64 encoding.
|
51
|
+
|
52
|
+
mimetype: application/x-microsoft.net.object.soap.base64
|
53
|
+
value : The object must be serialized with
|
54
|
+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
55
|
+
: and then encoded with base64 encoding.
|
56
|
+
|
57
|
+
mimetype: application/x-microsoft.net.object.bytearray.base64
|
58
|
+
value : The object must be serialized into a byte array
|
59
|
+
: using a System.ComponentModel.TypeConverter
|
60
|
+
: and then encoded with base64 encoding.
|
61
|
+
-->
|
62
|
+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
63
|
+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
64
|
+
<xsd:element name="root" msdata:IsDataSet="true">
|
65
|
+
<xsd:complexType>
|
66
|
+
<xsd:choice maxOccurs="unbounded">
|
67
|
+
<xsd:element name="metadata">
|
68
|
+
<xsd:complexType>
|
69
|
+
<xsd:sequence>
|
70
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
71
|
+
</xsd:sequence>
|
72
|
+
<xsd:attribute name="name" use="required" type="xsd:string" />
|
73
|
+
<xsd:attribute name="type" type="xsd:string" />
|
74
|
+
<xsd:attribute name="mimetype" type="xsd:string" />
|
75
|
+
<xsd:attribute ref="xml:space" />
|
76
|
+
</xsd:complexType>
|
77
|
+
</xsd:element>
|
78
|
+
<xsd:element name="assembly">
|
79
|
+
<xsd:complexType>
|
80
|
+
<xsd:attribute name="alias" type="xsd:string" />
|
81
|
+
<xsd:attribute name="name" type="xsd:string" />
|
82
|
+
</xsd:complexType>
|
83
|
+
</xsd:element>
|
84
|
+
<xsd:element name="data">
|
85
|
+
<xsd:complexType>
|
86
|
+
<xsd:sequence>
|
87
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
88
|
+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
89
|
+
</xsd:sequence>
|
90
|
+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
91
|
+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
92
|
+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
93
|
+
<xsd:attribute ref="xml:space" />
|
94
|
+
</xsd:complexType>
|
95
|
+
</xsd:element>
|
96
|
+
<xsd:element name="resheader">
|
97
|
+
<xsd:complexType>
|
98
|
+
<xsd:sequence>
|
99
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
100
|
+
</xsd:sequence>
|
101
|
+
<xsd:attribute name="name" type="xsd:string" use="required" />
|
102
|
+
</xsd:complexType>
|
103
|
+
</xsd:element>
|
104
|
+
</xsd:choice>
|
105
|
+
</xsd:complexType>
|
106
|
+
</xsd:element>
|
107
|
+
</xsd:schema>
|
108
|
+
<resheader name="resmimetype">
|
109
|
+
<value>text/microsoft-resx</value>
|
110
|
+
</resheader>
|
111
|
+
<resheader name="version">
|
112
|
+
<value>2.0</value>
|
113
|
+
</resheader>
|
114
|
+
<resheader name="reader">
|
115
|
+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
116
|
+
</resheader>
|
117
|
+
<resheader name="writer">
|
118
|
+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
119
|
+
</resheader>
|
120
|
+
</root>
|