93232c1fedcd91be76992c7dbb3f7bfe38f0c1f2
Guides/Logging-Basics.md
| ... | ... | @@ -0,0 +1,24 @@ |
| 1 | +#Logging Basics |
|
| 2 | +[[_TOC_]] |
|
| 3 | + |
|
| 4 | +##Enabling Logging |
|
| 5 | + |
|
| 6 | +Izenda utilizes Log4Net as the default logging provider. This logging ability is included with every implementation of Izenda since version 6.7.1.265. By default, the logging level is set to FATAL, so almost nothing is logged. To change this, and "enable" logging, just change the error level to something less restrictive. In the next section, the specifics of how to make this change will be shown. |
|
| 7 | + |
|
| 8 | +##Basic Configuration |
|
| 9 | +```xml |
|
| 10 | +<root> |
|
| 11 | + <level value="FATAL" /> |
|
| 12 | + <appender-ref ref="rollingFile" /> |
|
| 13 | +</root> |
|
| 14 | +``` |
|
| 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. |
|
| 16 | + |
|
| 17 | +```xml |
|
| 18 | +<param name="DatePattern" value="MM-dd-yyyy'-FATAL.log'"/> |
|
| 19 | +``` |
|
| 20 | +The value here ends up being the name of the log file output. It is recommended you change the "-FATAL" part if you change your logging level. The output file will be placed in the root level of the application. |
|
| 21 | + |
|
| 22 | +##More Information |
|
| 23 | + |
|
| 24 | +For more information about logging, please visit the [log4net documentation](http://logging.apache.org/log4net/release/features.html). There is significantly more information there than anyone will ever need. |
|
| ... | ... | \ No newline at end of file |