Hi McA
... it seams that this is what i searched for ;-) - Thanks! And i share your opinion about the architecture!
But if i use this Appender and fetch a appropriate logger of it ... how can i make my Moose Objects aware of this logger?
e.g. if i use the ROOT-logger i can do this with the Role Concept of Moose like this:
package My::Class; use Moose; with 'MooseX::Log::Log4perl'; ... $self->log->info("CREATED Object: " . $self->name);
But if i create my OWN-logger in my perl-script like this:
# my perl-script using My::Class my $fileLogger = Log::Log4perl->get_logger('file');
i would have to pass the reference $fileLogger through ALL my Modules - have i? - or is there a better solution to make my Modules aware of $fileLogger??? (similar to the solution with ROOT-Logger)
In reply to Re^2: log4perl collecting (buffering) messages
by coke4all
in thread log4perl collecting (buffering) messages
by coke4all
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |