Koha Test Wiki MW Canasta on Koha Portainer

Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.

For the current Koha Wiki, visit https://wiki.koha-community.org .

Logger

From Koha Test Wiki MW Canasta on Koha Portainer
Jump to navigation Jump to search

Logger

Koha will have a logging module (Koha::Utils::Logger). Please have a look at Bug 8190 for more information.

How to choose your log level?

8 levels are available: debug, info, normal, warning, error, critical, alert, unusable.

debug

Debugging information used by developpers.

Example: Display a variable's value.

info

An information message.

Example: The user's operations, indexation of data, etc.

normal

A normal operation is reported.

It is something quite important.

warning

The application could have strange behaviours.

Example: A regexp fails, a syspref does not exist, data is corrupted, etc.

error

An user error occurred. Koha catch the error and does not crash but something is wrong.

Example: Bad field format, SQL error, bad right on a file, etc.

critical

Koha is broken. The interface still responds but the service is degradated.

Example: a field is missing in the DB but the application is usable.

alert

Koha is going to be unusable, an action must be taken immediately.

unusable

The application is unusable.

Example: an important module is not installed, an important field is missing in the DB, the connection to the DB fails, etc.