June 12extended-logger, a logger for std.experimental.logger that supports custom format patterns
This last days, I wrote a quick logger (extending from FileLogger) to std.experimental.logger that supports custom format layouts, like log4j . Also, over it, I write a specific logger for console output that uses ANSI escape codes to colorize the log level. https://github.com/Zardoz89/extended-logger I hope that someone find this useful. The code that apply the log pattern layout, have a lot of space to be improved. I have on my TODO list to prepare a way to configure rolling policies. So, someone could rotate and delete old log files, based on size or date. But for this, probably I would need to extend directly from std.experimental.logger : Logger and rewrite stuff that actually I'm inherit from FileLogger.
Copyright © 1999-2018 by the D Language Foundation