Remix.run Logo
vpribish 2 days ago

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.

emmelaich a day ago | parent | next [-]

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.

regularfry 2 days ago | parent | prev | next [-]

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

groundzeros2015 a day ago | parent | prev [-]

The first one should be crashing.