public class LogService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LogService.DefaultHandler
The default log handler that dump the messages to stdout.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
close()
The static ATHOS call back.
|
static LogService |
getInstance()
Get the instance of the log service.
|
static boolean |
init()
The static ATHOS call back.
|
void |
init(java.util.Properties properties,
java.lang.String[] args)
Initialize the log service instance.
|
static boolean |
log(long time,
long level,
long diffTime,
long threadId,
long sessionId,
java.lang.String logMessage) |
static boolean |
log(long level,
long diffTime,
long threadId,
long sessionId,
java.lang.String logMessage)
The static ATHOS call back.
|
public static LogService getInstance()
public void init(java.util.Properties properties, java.lang.String[] args) throws java.lang.Exception
properties
- The propertiesargs
- the runtime arguments.java.lang.Exception
- if the initialization fails.public static boolean init()
public static boolean close()
public static boolean log(long level, long diffTime, long threadId, long sessionId, java.lang.String logMessage)
time
- the time of the log.level
- the log level.diffTime
- the time difference to the last call.threadId
- the id of the ATHOS thread.sessionId
- the session id.logMessage
- the log message.public static boolean log(long time, long level, long diffTime, long threadId, long sessionId, java.lang.String logMessage)