On Mon May 27 18:39:55 2013, XENO wrote:
Show quoted text> I'd like an option to specify a prefix for loggers. Many loggers do
> this themselves but since not all do. it'd be nice to be able to pass
> it as an option, ideally with some way of saying include a formatted
> timestamp for now (it could take a closure ).
This seems related to your request for filters in 86794, but on the adapter (log message consumer) side instead of the log message generator side.
Off the top of my head, I would think that a Filter adapter would be quite feasible for this.
use Log::Any::Adapter Filter => sub { ... } => File => '/path/to/file.log';
I'm not sure about adapter caching, though. Again, I'll ponder this.