public final class StandardLogService extends Object implements LogService
LogService| Constructor and Description |
|---|
StandardLogService() |
StandardLogService(String clazzName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 in interface LogServicepublic void error(String message)
error in interface LogServicepublic void error(Throwable throwable, String message)
error in interface LogServicepublic void error(Throwable throwable)
error in interface LogServicepublic void info(String message)
info in interface LogServicepublic boolean isInfoEnabled()
public void warn(String message)
warn in interface LogServicepublic void audit(String msg)
audit in interface LogServicemsg - audit log messagepublic void statistic(String message)
LogServicestatistic in interface LogServicemessage - statistic messageCopyright © 2016 The Apache Software Foundation. All rights reserved.