![]() |
![]()
| ![]() |
![]()
NAMEApp::Regather::Logg - logging classSYNOPSISuse App::Regather::Logg; my $log = new App::Regather::Logg( prognam => 'MyAppName', foreground => $foreground_or_syslog, colors => $wheather_to_use_term_colors ); $log->cc( pr => 'info', fm => "App::Regather::Logg initialized ... (write to syslog)" ); $log->cc( fg => 1, fm => "App::Regather::Logg initialized ... (write to STDOUT)" ); ... my $mesg = $ldap->search( filter => "(objectClass=unsearchebleThing)"); $log->logg_ldap_err( mesg => $mesg ); DESCRIPTIONThis is a class to log messages.CONSTRUCTOR
info => 'ansi113'
err => 'bold ansi255 on_ansi196' debug => 'ansi195' warning => 'bold ansi237 on_ansi214' for reference look at Term::ANSIColor
METHODS
SEE ALSOSys::Syslog, Data::Printer, Term::ANSIColorAUTHORZeus Panchenko <zeus@gnu.org.ua>COPYRIGHTCopyright 2019 Zeus Panchenko.This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|