Code Monkey home page Code Monkey logo

Comments (2)

patriknw avatar patriknw commented on June 14, 2024 1

Yeah, always difficult to judge the level when logging from a library. Some guidelines:

ERROR is for critical problems, such as bugs that should not occur. It should be possible to run a production system without ERRORs, and if they happen they should be good candidates for alerts.

WARN is a problem, but the system will be able to recover by itself, e.g. retry.

INFO is just informational about ordinary events, such as successful startup of important things, but not too much.

DEBUG and TRACE is for troubleshooting, understanding details of what is going on. Normally disabled in production. It should still be possible to turn on DEBUG in production without causing severe performance degradation because of logging. TRACE can be more chatty.

from akka-edge-rs.

huntc avatar huntc commented on June 14, 2024

ERROR is for critical problems, such as bugs that should not occur. It should be possible to run a production system without ERRORs, and if they happen they should be good candidates for alerts.

This should be addressed by panics. If there's an irrecoverable error then a panic will occur and a stack trace written to stderr (depending on the panic handler, which can be changed).

WARN is a problem, but the system will be able to recover by itself, e.g. retry.

i.e. operator audience. I think this will become the major focus of addressing this issue.

INFO is just informational about ordinary events, such as successful startup of important things, but not too much.

i.e. operator audience. We've got some of this, but I'll look further.

DEBUG and TRACE is for troubleshooting, understanding details of what is going on. Normally disabled in production. It should still be possible to turn on DEBUG in production without causing severe performance degradation because of logging. TRACE can be more chatty.

i.e. developer audience. This one is trickier because we don't know what trouble we're up for ahead of it occurring. :-) We've got some of this but I'll revisit.

from akka-edge-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.