tags:

views:

136

answers:

1

I have nearly completed my first ETL process that uses Rhino ETL, and I've been able to figure out the way to use the API by referring to the tests.

Great. I have data moving through the pipeline and being written to the db.

However I can't seem to figure out how to enable logging.

  • the log4net assemblies are there, the log4net object is being created
  • the WithLoggingMixin class seems to be doing its thing (although I must admit I'm a bit fuzzy on exactly what that is)
  • in the log4net.config file I have a follingFileAppender set up, and it contains the following:

But no log file is created. When I make a call to Debug() in my code it doesn't do anything because log.IsDebugEnabled is false.

What am I missing?

+1  A: 

Okay. I dug through the [log4net documentation][1] and figured out a way to do it.

First of all I moved the log4net config into the App.config file (in a log4net section) and then executed

log4net.Config.XmlConfigurator.Configure();

during initialization. Now it works.


[1]: http://logging.apache.org/log4net/release/manual/configuration.html#.config Files "Apache log4net documentation"

nocache