Add ability to destroy a specific logger
Brought to you by:
timdown
While I can destroy all loggers with resetConfiguration(), there are times when it'd be quite helpful to have the ability to destroy a specific logger without upsetting the whole apple cart. Something like:
log4javascript.destroyLogger = function(name) {
if (loggers[name]) {
delete loggers[name];
}
}
This would allow destruction of a specified logger without touching other loggers or resetting logging levels.
Agreed, that sounds reasonable. I've just implemented it in the upcoming version 2 (https://github.com/timdown/log4javascript2).