NAME
setDebugLevel.pl - small UI for setting debug levels and appenders for the various loggers (main script, and each EAI::Wrap package)
SYNOPSIS
setDebugLevel.pl
DESCRIPTION
Following screen (example) is offered when calling setDebugLevel (and there is a log.config in $ENV{EAI_WRAP_CONFIG_PATH}/$execute{env}, see also EAI::Wrap::%execute and EAI::Wrap::DESCRIPTION):
Use setDebugLevel to change the following entries from $ENV{EAI_WRAP_CONFIG_PATH}/$execute{env}/log.config (enter 0 to switch to common log.config and back):
1: log4perl.rootLogger = INFO, FILE, SCREEN, MAIL
2: #log4perl.logger.main = DEBUG
3: #log4perl.logger.EAI.Wrap = DEBUG
4: #log4perl.logger.EAI.DB = DEBUG
5: #log4perl.logger.EAI.FTP = DEBUG
6: #log4perl.logger.EAI.File = DEBUG
7: #log4perl.logger.EAI.Common = DEBUG
enter first logger (1..7) or (#) to invert comments globally,
then level to change to ((F)ATAL, (E)RROR, (I)NFO, (D)EBUG, (T)RACE) or (#) to comment the logger in/out,
and finally optional appenders ((S)CREEN, (M)AIL, (F)ILE) not for rootLogger!), only possible with changing the level.
(no entry ends the program):
use entries to manipulate log.config in the described way, e.g. 1t to enable general tracing, 2# to uncomment the main logger (which then overrides the rootLoggers INFO level), 3e to set log leverl to error for EAI::Wrap (to enable this logger you have to uncomment it with 3# !).
COPYRIGHT
Copyright (c) 2023 Roland Kapl
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.