By default winston uses the following levels:
var levels = {
silly: 0,
verbose: 1,
info: 2,
warn: 3,
debug: 4,
error: 5
};
Each level is an escalating priority, silly being the most meaningless information, and error being the most important. Winston transports are configured with the minimum level to log. That is, messages will only be logged to a transport if the level is greater than or equal to the .level instance variable on the transport object (see: https://github.com/indexzero/winston/blob/master/lib/winston/logger.js#L131-132).
This is considered an intelligent default because it is assumed that the higher priority messages would want to be persisted to the most transports, while the lowest priority may only be persistented to the console. An example of this is in standard-levels.js
.
In the event you *don't want this default, see custom-levels.js
which configures a Console
transport which only logs debug and error messages and Loggly
transport which logs all other levels.