- or download this
use strict;
use warnings;
...
$log->info("Logging initialized");
Log::Log4perl::MDC->put("MDC_key", "my MDC value");
$log->info("MDC used");
- or download this
log4perl.rootLogger = TRACE, app_screen, app_db
...
log4perl.appender.app_db.warp_message = 0
log4perl.appender.app_db.attrs.f_encoding = utf8
log4perl.appender.app_db.layout = Log::Log4perl::Layout::NoopLayout
- or download this
Log4perl: DBI->prepare failed no such table: log
insert into log (priority, my_key, message) values (?, ?, ? ) at C:\Us
+ers\bloeckm\Perl\DB_logging\log4perl_dbi_demo.pl line 13.