A little logging framework
One of the great things about java was the logging framework under java.util.logging, it was simple, extendable and efficient. I’ve tried to take those properties and implement a logging framework for the .net platform in c#, for now it features a logger with some logging level, these determine if a log event should get filtered, there are the usual: fine, info, warning and severe. For the actually logging you implement something called a handler with a Write method, this method takes a log event with a time, level and message.
This is very similar to java’s implementation, but why change something that works well ?
I’ll be updating it with features (new ready-made handler implementations, info about the method that made the logging etc) and tweaks from time to time, for now it works.
The DEFAULT_LOGGER on the Logger class can be used to log to stderr, without having to create a logger and implement your own handler.
Feel free to try it, feedback is welcome.