Summery :
- Follow best practices in logging, such as avoiding logging sensitive information and using appropriate log levels for different scenarios.
- use asynchronous logging over synchronous with a minimum logging level of WARN for a production application. In some cases, enable INFO logging level when you need to confirm events such as successful policy installation or to perform troubleshooting.
- Avoid logging sensitive information.
- Using correlation identifier to trace system calls across application layers.
- Use categories to turn on/off logging during runtime, for eg we need diff. log level for Dev & PROD.
- If a flow uses several loggers, add some fixed text in the logger’s message to identify where it was generated.
Comments
Post a Comment