[Koha-devel] RFC: Koha needs a logger!

Jonathan Druart jonathan.druart at biblibre.com
Mon Sep 17 11:59:02 CEST 2012


Hi Kyle,

> That is interesting. Is there a good argument for using something like
> this over Log4perl?
>

I choose Log::Lite because of it seems easier and lighter than Log4perl. It
does all what I want to implement.

The big question I have is: Would being able to output debug messages
> to the web browser be useful enough to make it work implement?
>

Currently, the Koha logs are very verbose. If we replace all occurrences of
'warn' to use this module and display them to the web browser, the users
will be unhappy. I think it is preferable to manage and encapsule potential
errors and display an adapted message for each them. Yes I know it is a big
work :-/
But simply it could be possible to display only error message. For
developpers I think it is not very useful to display debug messages (just
my opinion).

Could you test and sign-off my patch if you agree with the
Koha::Utils::Logger module and/or propose changes ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20120917/a7ab5554/attachment.htm>


More information about the Koha-devel mailing list