My favorites | Sign in
Project Logo
                
Code license: Apache License 2.0
Labels: log4net, dsl, boo, log4netconfig
Show all Featured downloads:
binary release 1.0.1.0.zip
Show all Featured wiki pages:
GettingStarted
People details
Project owners:
  michaelacromwell

Compiled against 1.2.10.0 of log4net

Purpose

I 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 like

This 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 DEBUG

Where to go now

  1. You can grab the source from the main trunk or download the binaries.
  2. Head over to the GettingStarted page, this will get you up to speed.
  3. The next step would be to head over to the DslKeywordsIdentifiers and Conventions pages these describes the syntax in more detail.








Hosted by Google Code