zoukankan      html  css  js  c++  java
  • java日志框架 (四) 日志相关

    1. 输出等级

    This rule is at the heart of logback. It assumes that levels are ordered as follows: 

    TRACE < DEBUG < INFO <  WARN < ERROR.

    In a more graphic way, here is how the selection rule works. In the following table, the vertical header shows the level of the logging request, designated by p, while the horizontal header shows effective level of the logger, designated by q. The intersection of the rows (level request) and columns (effective level) is the boolean resulting from the basic selection rule.

    level of 
    request p

    effective level q

    TRACE

    DEBUG

    INFO

    WARN

    ERROR

    OFF

    TRACE

    YES

    NO

    NO

    NO

    NO

    NO

    DEBUG

    YES

    YES

    NO

    NO

    NO

    NO

    INFO

    YES

    YES

    YES

    NO

    NO

    NO

    WARN

    YES

    YES

    YES

    YES

    NO

    NO

    ERROR

    YES

    YES

    YES

    YES

    YES

    NO

     

  • 相关阅读:
    最短路
    Codeforces Round #607 (Div. 2) C. Cut and Paste
    第三次训练赛
    训练赛
    day27-反射
    day26-网络编程
    tcp文件上传--多个客户端
    tcp图片上传
    tcp文件上传优化
    tcp文件上传
  • 原文地址:https://www.cnblogs.com/ncepu/p/13694893.html
Copyright © 2011-2022 走看看