Awesome
awesome-logging
A curated list of delightful insights and packages and resources around logging!
Following a list of good logging libraries for certain programming languages.
Why use logging
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)
Suggested default log levels
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
)
Log servers
- Graylog2
- Loggly
NodeJs
- Pros:
- User defined namespaces (logging groups)
- Include and Exclude log groups
- Colored log messages
- Symbols
- Support for transports
iOS
- Pros:
- External Mac app with color coding and log filtering
Android
- Galgo Interesting idea to display logs on the device in case you are not connected to the dev machine!
MacOSX
- Pros:
- Good to find problems happening during the