DataTau logo

DataTau

new | ask | show | submit
login
My Logging Best Practices (tuhrig.de)
1 point by kordless 11 days ago | web | 2 comments





DEBUG Used for debug messages. This is useful for testing only. Error This level is used for unexpected errors. Notice This level is used for normal but important events. This is used for warnings.Info This level is used for general information about the current status of the application. This is used for information.warn This level is used for warning messages. This is used for notifications.

The log level defines how important is the log message. Thus, it is important to use the right level when writing logs.