You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove debug logs on hot path (while data reading, while repeating operations)
check debug do not have SQL, credentials, sensitive information, user data, etc.
review all other logs in the same way
info log should be less frequent and happen only 1 - 2 times. info logs should indicate really valuable information not just "client initialized". No configuration dumps. Only very specific cases (because when client initialized for each request it causes log flood)
error for exceptions and really errors
trace log should not be used except for a few cases
warn is to indicate abnormal state. should not happen on hot path but fine for configuration.
document logging with examples how to disable/enable different loggers - so user just copy to application configuration.
Activity