![]() |
![]()
| ![]() |
![]()
NAMEOpenXPKI::Log4perl - Tiny wrapper around Log::Log4perl's init methods to provide some custom enhancementsSYNOPSISuse OpenXPKI::Log4perl; OpenXPKI::Log4perl->init_or_fallback($cfg_file); my $log = Log::Log4perl->get_logger(...); Please note that you do NOT have to additionally "use Log::Log4perl" as it's already loaded by "OpenXPKI::Log4perl". DESCRIPTIONThis wrapper contains the following enhancements:
METHODSinit_or_fallbackInitialize Log4perl with the given configuration or fallback to STDERR output in case the configuration cannot be read.Parameters:
If the first parameter is undef or the config file is not found, the constructor will print a warning message. So if you are fine with the default screen logger, pass an empty string as first an, optional, the wanted log level as second parameter.
|