hapijs / log

hapi logging plugin
Other
6 stars 5 forks source link

Support log levels #1

Closed cjihrig closed 3 years ago

cjihrig commented 3 years ago

I propose one of the following log level sets.

RFC5424, also supported by winston:

{ 
  emerg: 0, 
  alert: 1, 
  crit: 2, 
  error: 3, 
  warning: 4, 
  notice: 5, 
  info: 6, 
  debug: 7
}

Or, the log levels supported by bunyan:

"fatal" (60): The service/app is going to stop or become unusable now. An operator should definitely look into this soon.
"error" (50): Fatal for a particular request, but the service/app continues servicing other requests. An operator should look at this soon(ish).
"warn" (40): A note on something that should probably be looked at by an operator eventually.
"info" (30): Detail on regular operation.
"debug" (20): Anything else, i.e. too verbose to be included in "info" level.
"trace" (10): Logging from external libraries used by your app or very detailed application logging.
geek commented 3 years ago

The RFC5424 levels are currently supported