|
Project Information
Featured
Downloads
Links
|
Compiled against 1.2.10.0 of log4net PurposeI created log4net-altconf as an alternative way of configuring log4net, the reasoning behind this was to get away from all the verbosity required when configuring via XML and instead to come up with a clean DSL to take the place of XML elements and attributes. A side-effect of using a DSL that leverages Boo under the hood means that you can leverage Boo programming constructs allowing power that is not available via XML configuration. What it looks likeThis is a sample of how easy it is to setup a single file appender and log the root log: add_appender @FileAppender, FileAppender:
File = "log.txt"
AppendToFile = true
Layout = PatternLayout("%date [%thread] %-5level %logger [%ndc] - %message%newline")
log_for 'root':
with_appenders:
@FileAppender
at_level DEBUGWhere to go now
|