zoukankan      html  css  js  c++  java
  • 日志应该满足的要求

    中文:

    • 时间戳-  表示事件何时发生
    • 格式化- 日志行应该容易让人理解,同时便于程序解析
    • 日志地点- 它应该是标准输出和错误,应用不需要关心日志的地点
    • 日志等级- 日志事件应该有不同的服务等级,大部分情况下我们比较关心debug 和info 级别的事件

    英文:

    • timestamps - it is crucial to know which event happened when,
    • formatting - log lines must be easily understandable by humans, and straightforward to parse for applications,
    • log destination - it should be always the standard output/error, applications should not concern themselves with log routing,
    • log levels - log events have different severity levels, in most cases, you won't be interested in debug or info level events.
  • 相关阅读:
    cannot resolve symbol 'XXX'
    jwt单点登入
    空3
    Hibernate持久化,生命周期
    Hibernate主键生成策略
    Hibernate常用api以及增删改查
    Hibernate配置流程
    Hibernate定义
    Git总结
    spring整合MQ
  • 原文地址:https://www.cnblogs.com/mliudong/p/6804444.html
Copyright © 2011-2022 走看看