logoalt Hacker News

vpribishyesterday at 4:38 PM3 repliesview on HN

I just started playing in the Erlang ecosystem and they have EIGHT levels of logging messages. it seems crazily over-specific, but they are the champions of robust systems.

I could live with 4

Error - alert me now.

Warning - examine these later,

Info - important context for investigations.

Debug - usually off in prod.


Replies

emmelaichtoday at 2:57 AM

I need Notice (between Info and Warning), for important events such as start and shutdown, and successfully connecting to the database, and ready to start serving. These otherwise would be in Info; and enabling Info level produces a torrent of uninteresting muck.

regularfryyesterday at 4:57 PM

The eight levels in Erlang are inherited from syslog, rather than something specific to Erlang itself.

groundzeros2015yesterday at 8:27 PM

The first one should be crashing.