log4net app-domain object
Posted on 2009-05-04
I'm using Log4Net instead of .net Tracing for my logging needs. With tracing, it seems that I can write from wherever I am in code without needing a tracing object (i.e. Trace.Write). I think that's because .net sets up an app-domain Tracing object?
Is the same possible for Log4Net or do I need to pass around a log object? I'd love to use Log4Net in the same way as tracing where I can just code Log.Debug("...") and not worry about passing around the Log object. thoughts?