@@ -63,24 +63,24 @@ SegmentedListBuilder - build a list of segments
6363The library defines a configuration section handler.
6464``` xml
6565<configuration >
66- <configSections >
67- <section name =" DataCommander.Foundation.Configuration" type =" DataCommander.Foundation.Configuration.SectionHandler, DataCommander.Foundation" />
68- </configSections >
69- <DataCommander .Foundation.Configuration>
70- </DataCommander .Foundation.Configuration>
66+ <configSections >
67+ <section name =" DataCommander.Foundation.Configuration" type =" DataCommander.Foundation.Configuration.SectionHandler, DataCommander.Foundation" />
68+ </configSections >
69+ <DataCommander .Foundation.Configuration>
70+ </DataCommander .Foundation.Configuration>
7171</configuration >
7272```
7373
7474The schema of the configuration section is a tree of nodes. The node can contain child nodes and attributes.
7575
7676``` xml
7777<DataCommander .Foundation.Configuration>
78- <node name =" Node1" >
79- <attribute name =" Enabled" type =" bool" value =" true" />
80- <attribute name =" Path" value =" %TEMP%" />
81- </node >
82- <Node2 >
83- </Node2 >
78+ <node name =" Node1" >
79+ <attribute name =" Enabled" type =" bool" value =" true" />
80+ <attribute name =" Path" value =" %TEMP%" />
81+ </node >
82+ <Node2 >
83+ </Node2 >
8484</DataCommander .Foundation.Configuration>
8585</configuration >
8686```
@@ -114,10 +114,10 @@ If the name of the xml element is not node or attribute then the type of the ele
114114
115115``` xml
116116<attribute name =" MyArray" type =" int[]" >
117- <a value =" 3" />
118- <a value =" 5" />
119- <a value =" 7" />
120- <a value =" 9" />
117+ <a value =" 3" />
118+ <a value =" 5" />
119+ <a value =" 7" />
120+ <a value =" 9" />
121121</attribute >
122122```
123123
@@ -182,23 +182,23 @@ The built-in implementation can be replaced with NLog,log4net etc. The applicati
182182See the default configuration in Data Commander as an example:
183183``` xml
184184<Diagnostics >
185- <LogFactory >
186- <attribute name =" TypeName" value =" DataCommander.Foundation.Diagnostics.FoundationLogFactory" />
187- </LogFactory >
188- <FoundationLogFactory >
189- <attribute name =" DateTimeKind" type =" System.DateTimeKind" value =" Local" />
190- <LogWriters >
191- <node >
192- <attribute name =" Type" value =" FileLogWriter" />
193- <attribute name =" Enabled" type =" bool" value =" true" />
194- <attribute name =" LogLevel" type =" DataCommander.Foundation.Diagnostics.LogLevel" value =" Debug" />
195- <attribute name =" DateTimeKind" type =" System.DateTimeKind" value =" Local" />
196- <attribute name =" Path" value =" %TEMP%\DataCommander[{date}]({time}) {guid}.log" />
197- <attribute name =" Async" type =" bool" value =" true" />
198- <attribute name =" FileAttributes" type =" System.IO.FileAttributes" value =" ReadOnly,Hidden" />
199- </node >
200- </LogWriters >
201- </FoundationLogFactory >
185+ <LogFactory >
186+ <attribute name =" TypeName" value =" DataCommander.Foundation.Diagnostics.FoundationLogFactory" />
187+ </LogFactory >
188+ <FoundationLogFactory >
189+ <attribute name =" DateTimeKind" type =" System.DateTimeKind" value =" Local" />
190+ <LogWriters >
191+ <node >
192+ <attribute name =" Type" value =" FileLogWriter" />
193+ <attribute name =" Enabled" type =" bool" value =" true" />
194+ <attribute name =" LogLevel" type =" DataCommander.Foundation.Diagnostics.LogLevel" value =" Debug" />
195+ <attribute name =" DateTimeKind" type =" System.DateTimeKind" value =" Local" />
196+ <attribute name =" Path" value =" %TEMP%\DataCommander[{date}]({time}) {guid}.log" />
197+ <attribute name =" Async" type =" bool" value =" true" />
198+ <attribute name =" FileAttributes" type =" System.IO.FileAttributes" value =" ReadOnly,Hidden" />
199+ </node >
200+ </LogWriters >
201+ </FoundationLogFactory >
202202</Diagnostics >
203203```
204204The log factory class is the built-in FoundationLogFactory. The configuration of this class is in the FoundationLogFactory xml element. The factory creates a file log writer. The log files will be written into the %TEMP% directory. One file per application start.
0 commit comments