Comment 1 for bug 863445

Revision history for this message
Lasindu Charith (lasinducharith) wrote :

I have looked at
(http://docs.evergreen-ils.org/1.6/draft/html/writing_an_opensrf_service.html
under Error! Warning! Info! Debug!) and
(http://evergreen-ils.org/dokuwiki/doku.php?id=opensrf:1.2:install)
and thought of using the logger in OpenSRF::Utils::Logger in
edi_pusher.pl script. The logging levels ERROR, WARNING, INFO, DEBUG,
INTERNAL will help the user in great deal when trying to troubleshoot
the code.

So my attempt was to use $logger->info(), $logger->error(),
$logger->internal(), $logger->debug() according to the information in
the places of print, print STDERR and die. But I do have a little
concern about the logging levels discrimination and how could I decide
which log goes to which level ? I have here with attached the fixed
edi_pusher.pl and edi_fetcher.pl scripts in the fix.zip file.