Not at all. Actually, I've already been thinking about writing a Clog façade for SLF :)
> I may well use this for my loggin inside of Cinch.
Yeah, using a façade in a library/framework is quite convenient (not necessarily SLF). You can do extensive logging, and the users of your framework just can decide what the façade should do with the messages. I'm currently working on an IO-heavy framework that does just that: Whenever something goes wrong, it requests a named logger at runtime and writes warnings and errors to it:
try
{
//do crazy IO stuff
}
catch(Exception e)
{
LoggerService.GetLogger("my-framework-name").Fatal(e, "Detailed Info");
throw or whatever;
}
Per default, SLF will just discard these messages (no loggers configured at all), but the user can activate logging very easily by configuring SLF in code or app.config. Given that IO errors are pretty likely during development, this might prove pretty valuable when it comes to bug hunting :)
From: Sacha Barber
[mailto:sacha....@gmail.com]
Sent: Mittwoch, 2. Dezember 2009 16:15
To: wpf-di...@googlegroups.com
Ok, I've taken the Trace issue to the SLF discussion board, along with a first quick implementation sample:
http://slf.codeplex.com/Thread/View.aspx?ThreadId=76892
Paul: I need to look into the CorrelationManager. Unfortunately, I have to admit that so far, I'm drawing a blank here :/