gboat2.base.logging.util
类 Priority

java.lang.Object
  继承者 gboat2.base.logging.util.Priority

public class Priority
extends Object

作者:
zhangxj-a, hemw

字段摘要
static String BUSINESS_LOG_KEY
          业务日志参数
static Level DEFAULT_LEVEL
          默认的日志级别
protected  Level level
           
static String LOG_CONFIG_LOCATION
          业务日志地址LOG_CONFIG_LOCATION
 
方法摘要
static Priority getInstance()
           
protected  String getLogRealPath()
           
 boolean isDebugEnabled()
          Check whether business log used is enabled for DEBUG .
 boolean isEnabled(Level level)
           
 boolean isErrorEnabled()
          Check whether business log used is enabled for ERROR .
 boolean isInfoEnabled()
          Check whether business log used is enabled for INFO .
 boolean isWarnEnabled()
          Check whether business log used is enabled for WARN .
static void setDefaultLevel(Level defaultLevel)
          设置默认的日志级别
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

LOG_CONFIG_LOCATION

public static final String LOG_CONFIG_LOCATION
业务日志地址LOG_CONFIG_LOCATION

另请参见:
常量字段值

BUSINESS_LOG_KEY

public static final String BUSINESS_LOG_KEY
业务日志参数

另请参见:
常量字段值

DEFAULT_LEVEL

public static Level DEFAULT_LEVEL
默认的日志级别


level

protected Level level
方法详细信息

getLogRealPath

protected String getLogRealPath()
返回:
获取业务日志配置文件的绝对位置

getInstance

public static Priority getInstance()
返回:
获取单例

isDebugEnabled

public boolean isDebugEnabled()
Check whether business log used is enabled for DEBUG .

返回:

isInfoEnabled

public boolean isInfoEnabled()
Check whether business log used is enabled for INFO .

返回:

isWarnEnabled

public boolean isWarnEnabled()
Check whether business log used is enabled for WARN .

返回:

isErrorEnabled

public boolean isErrorEnabled()
Check whether business log used is enabled for ERROR .

返回:

isEnabled

public boolean isEnabled(Level level)
参数:
level -
返回:

setDefaultLevel

public static void setDefaultLevel(Level defaultLevel)
设置默认的日志级别

参数:
defaultLevel -


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.