RE: How to pass parameters through coding in log4net Applications

2005-08-14 Thread Nicko Cadell
The parameters configured through the config file are just public properties on the objects. If you want to programmatically create appenders you can do so as follows: log4net.Repository.Hierarchy.Hierarchy hierarchy = (log4net.Repository.Hierarchy.Hierarchy)log4net.LogManager.GetRepository ();

Re: How to pass parameters through coding in log4net Applications

2005-07-30 Thread Ron Grabowski
According to this page: http://tinyurl.com/dqhnj http://logging.apache.org/log4net/release/sdk/log4net.Appender.AdoNetAppender.ConnectionString.html There is a public property named ConnectionString on AdoNetAppender objects. If you're wanting to define the appender via the xml config file and s