Commons Logging priority best practices

前端 未结 6 961
一个人的身影
一个人的身影 2021-02-05 15:59

This may be a purely subjective question (if no organization has attempted to standardize this), but my team struggles with this more than you would think.

We use Apache

6条回答
  •  佛祖请我去吃肉
    2021-02-05 16:25

    My take

    • Fatal: The program is in an state that cannot be handled and must be terminated (automatically or by the user).
    • Error: The operation of the program failed in a way detectable by the user (the changes were not saved / a file could not be read), but the program still can work (try to load another file).
    • Warning: Something did not go as planed but the user did not notice it (a server did not answer a ping; perhaps when that server is needed it will cause an error/fatal)
    • Info: User actions / major program actions (file loaded, automatic backup stored).
    • Debug: Tracing information. What part of the program is running, which are the values of the parameters

提交回复
热议问题