mozilla / vinz-clortho

INACTIVE - http://mzl.la/ghe-archive - BrowserID Keymaster for LDAP enabled Identity Providers
16 stars 21 forks source link

logging #14

Closed lloyd closed 11 years ago

lloyd commented 11 years ago

currently all code is writing to console. We should introduce logging with logging levels to help diagnosis and log readability in production.

lloyd commented 11 years ago

first pass is going to just be to use winston and remove all console logs. winston has pluggable backends and we have great flexibility with it, and we use it in all other identity projects.

@mostlygeek - I'm going to start with logging to console, and suppress that during test runs. Do you want any sort of file logging at the application level, or are you cool with starting with routing std{err,out} to files and managing logrotation with LOGROTATE(8)?