-
Notifications
You must be signed in to change notification settings - Fork 16
Logging Best practices
mrutid edited this page May 30, 2012
·
2 revisions
-
Use cyclic files or syslog
-
Use always the most vervose timestamps (first element in line)
-
Use prefix related to filename/module (second element)
-
Use just one line (as far as possible)
-
Use just three levels: INFO/USER, WARN/ERROR, DEBUG
-
Weird states, possible bugs
-
Exceptions
-
Exceptions scope (all related objects)
-
Service accessibility (DB conn error…)