public final class StandardLogService extends Object implements LogService
LogService| 构造器和说明 |
|---|
StandardLogService() |
StandardLogService(String clazzName)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
audit(String msg)
log audit log
|
void |
debug(String message) |
void |
error(String message) |
void |
error(Throwable throwable) |
void |
error(Throwable throwable,
String message) |
static String |
getPartitionID(String tableName) |
void |
info(String message) |
boolean |
isDebugEnabled() |
static boolean |
isDoLog()
returns is DO Log
|
boolean |
isInfoEnabled() |
boolean |
isWarnEnabled() |
static void |
setDoLog(boolean doLog)
set Do Log
|
void |
setEventProperties(String propertyName,
String propertyValue) |
static void |
setThreadName(String partitionID,
String queryID) |
void |
statistic(String message)
Below method will be used to log the statistic information
|
void |
warn(String message) |
public StandardLogService(String clazzName)
clazzName - for which the Logging is requiredpublic StandardLogService()
public static boolean isDoLog()
public static void setDoLog(boolean doLog)
doLog - the doLog to setpublic boolean isDebugEnabled()
public boolean isWarnEnabled()
public void debug(String message)
debug 在接口中 LogServicepublic void error(String message)
error 在接口中 LogServicepublic void error(Throwable throwable, String message)
error 在接口中 LogServicepublic void error(Throwable throwable)
error 在接口中 LogServicepublic void info(String message)
info 在接口中 LogServicepublic boolean isInfoEnabled()
public void warn(String message)
warn 在接口中 LogServicepublic void audit(String msg)
audit 在接口中 LogServicemsg - audit log messagepublic void statistic(String message)
LogServicestatistic 在接口中 LogServicemessage - statistic messageCopyright © 2016 The Apache Software Foundation. All rights reserved.