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

Robin Sheat robin at catalyst.net.nz
Mon Sep 17 15:13:25 CEST 2012


Op 17-09-12 13:48, Kyle Hall schreef:
> I think it would be good
> to have the GET debug flag choose
> a level of output. Stuff like circulation rules would be level 1 ( info ).

This is not a good thing in production as it runs the risk of causing
security issues by leaking information.

If you were going to do it, I reckon enabling something that caused an
overlay of some sort on the page that got the messages written to it
would be neat, similar to what plack can do.

Also, using an existing library is good. It always looks easy and useful
to make your own logger, and everyone has at some point, but in general
it's a bad idea as the existing ones can probably do the job better.
Even if it means writing a plugin or something.

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: </pipermail/koha-devel/attachments/20120917/97569c2c/attachment.pgp>


More information about the Koha-devel mailing list