A curated list of delightful insights and packages and resources around logging!
Following a list of good logging libraries for certain programming languages.
Explain here why its good to log. Some points:
- Understand code on run time
- Understand state during run time
- Color coding
- Reducing the need to breakpoints
- Informal reasoning
- Helpfulness in production systems (e.g. in the context of load balancing)
Some log level which can be helpful to start with logging (inspired by winston for node).
- silly (e.g.
magenta
) - input (e.g.
grey
) - verbose (e.g.
cyan
) - prompt (e.g.
grey
) - debug (e.g.
blue
) - info (e.g.
green
) - data (e.g.
grey
) - help (e.g.
cyan
) - warn (e.g.
yellow
) - error (e.g.
red
)
- Graylog2
- Loggly
- Pros:
- User defined namespaces (logging groups)
- Include and Exclude log groups
- Colored log messages
- Symbols
- Support for transports
- Pros:
- External Mac app with color coding and log filtering
- Galgo Interesting idea to display logs on the device in case you are not connected to the dev machine!
- Pros:
- Good to find problems happening during the