Guides/Logging-Basics.md
... ...
@@ -7,12 +7,33 @@ Izenda utilizes Log4Net as the default logging provider. This logging ability is
7 7
8 8
##Basic Configuration
9 9
```xml
10
-<root>
11
- <level value="FATAL" />
12
- <appender-ref ref="rollingFile" />
13
-</root>
10
+<log4net>
11
+ <appender name="rollingFile" type="log4net.Appender.RollingFileAppender,log4net">
12
+ <file value="" />
13
+ <param name="AppendToFile" value="true"/>
14
+ <param name="RollingStyle" value="Date"/>
15
+ <param name="DatePattern" value="MM-dd-yyyy'-FATAL.log'"/>
16
+ <param name="StaticLogFileName" value="false"/>
17
+ <layout type="log4net.Layout.PatternLayout">
18
+ <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
19
+ </layout>
20
+ </appender>
21
+ <root>
22
+ <level value="FATAL" />
23
+ <appender-ref ref="rollingFile" />
24
+ </root>
25
+</log4net>
14 26
```
15
-The level value change be changed to any of the following; FATAL, ERROR, WARN, INFO, DEBUG and ALL. These are listed in ascending order of logged output. Set this level appropriately to catch the information you need from the logging.
27
+
28
+##Logging level
29
+
30
+```xml
31
+ <level value="FATAL" />
32
+```
33
+
34
+The level value change be changed to any of the following; FATAL, INFO, and ALL. These are listed in ascending order of amount of logged output. Set this level appropriately to catch the information you need from the logging.
35
+
36
+###File name
16 37
17 38
```xml
18 39
<param name="DatePattern" value="MM-dd-yyyy'-FATAL.log'"/>