@Service public class ProLogSystem extends LogSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Modifier and Type | Method and Description |
---|---|
static ProLogSystem |
createAndAddService() |
java.lang.String |
createFullType(java.lang.String name)
Creates the full log name a partial name.
|
LogMessage[] |
findMessages(java.lang.String[] fullTypes,
java.lang.String levelName,
long minTime,
long maxTime) |
LogMessage[] |
findMessages(java.lang.String fullType,
java.lang.String levelName,
long minTime,
long maxTime) |
LogMessage[] |
findMessagesByName(java.lang.String[] fullTypes,
java.lang.String logName,
java.lang.String levelName,
long minTime,
long maxTime) |
LogMessage[] |
findMessagesByName(java.lang.String fullType,
java.lang.String logName,
java.lang.String levelName,
long minTime,
long maxTime) |
long[] |
findMessageTimes(java.lang.String fullType,
java.lang.String levelName,
long minTime,
long maxTime) |
long[] |
findMessageTimesByName(java.lang.String fullType,
java.lang.String logName,
java.lang.String levelName,
long minTime,
long maxTime) |
long |
getExpireTimeout() |
void |
log(long timestamp,
java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level,
java.lang.String message)
Logs a message given a full name.
|
void |
log(java.lang.String fullType,
java.lang.String message)
Logs a message given a full name.
|
void |
log(java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level,
java.lang.String message)
Logs a message given a full name.
|
void |
logStream(long timestamp,
java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level,
java.io.InputStream is)
Logs a message given a full name.
|
void |
logStream(java.lang.String fullType,
java.io.InputStream is)
Logs a message given a full name.
|
WriteStream |
openLogStream(long timestamp,
java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level)
Logs a message given a full name.
|
WriteStream |
openLogStream(java.lang.String fullType)
Logs a message given a full name.
|
void |
setExpireTimeout(long timeout) |
void |
setLevel(java.util.logging.Level level) |
void |
setLogMax(int max) |
void |
start()
Starts the log service.
|
void |
stop()
Starts the log service.
|
getCurrent, init
destroy, getStartPriority, getStopPriority, isActive, preCreate, toString
public static ProLogSystem createAndAddService()
public void setExpireTimeout(long timeout)
setExpireTimeout
in class LogSystem
public long getExpireTimeout()
getExpireTimeout
in class LogSystem
public java.lang.String createFullType(java.lang.String name)
createFullType
in class LogSystem
public void log(java.lang.String fullType, java.lang.String message)
public void log(java.lang.String fullType, java.lang.String name, java.util.logging.Level level, java.lang.String message)
public void log(long timestamp, java.lang.String fullType, java.lang.String name, java.util.logging.Level level, java.lang.String message)
public void logStream(java.lang.String fullType, java.io.InputStream is)
public void logStream(long timestamp, java.lang.String fullType, java.lang.String name, java.util.logging.Level level, java.io.InputStream is)
public WriteStream openLogStream(java.lang.String fullType)
openLogStream
in class LogSystem
public WriteStream openLogStream(long timestamp, java.lang.String fullType, java.lang.String name, java.util.logging.Level level)
openLogStream
in class LogSystem
public LogMessage[] findMessages(java.lang.String fullType, java.lang.String levelName, long minTime, long maxTime)
findMessages
in class LogSystem
public LogMessage[] findMessages(java.lang.String[] fullTypes, java.lang.String levelName, long minTime, long maxTime)
findMessages
in class LogSystem
public LogMessage[] findMessagesByName(java.lang.String fullType, java.lang.String logName, java.lang.String levelName, long minTime, long maxTime)
findMessagesByName
in class LogSystem
public LogMessage[] findMessagesByName(java.lang.String[] fullTypes, java.lang.String logName, java.lang.String levelName, long minTime, long maxTime)
findMessagesByName
in class LogSystem
public long[] findMessageTimes(java.lang.String fullType, java.lang.String levelName, long minTime, long maxTime)
findMessageTimes
in class LogSystem
public long[] findMessageTimesByName(java.lang.String fullType, java.lang.String logName, java.lang.String levelName, long minTime, long maxTime)
public void start() throws java.sql.SQLException
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
java.sql.SQLException
public void stop()
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem