@Service public class LogSystem extends AbstractResinSubSystem
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
Constructor and Description |
---|
LogSystem() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createFullType(java.lang.String 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) |
static LogSystem |
getCurrent() |
long |
getExpireTimeout() |
void |
init() |
void |
log(long timestamp,
java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level,
java.lang.String message) |
void |
log(java.lang.String fullType,
java.lang.String message) |
void |
log(java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level,
java.lang.String message) |
void |
logStream(long timestamp,
java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level,
java.io.InputStream is) |
void |
logStream(java.lang.String fullType,
java.io.InputStream is) |
WriteStream |
openLogStream(long timestamp,
java.lang.String fullType,
java.lang.String name,
java.util.logging.Level level) |
WriteStream |
openLogStream(java.lang.String fullType) |
void |
setExpireTimeout(long timeout) |
void |
setLevel(java.util.logging.Level level) |
void |
setLogMax(int max) |
destroy, getStartPriority, getStopPriority, isActive, preCreate, start, stop, toString
@PostConstruct public void init()
public static LogSystem getCurrent()
public void setLevel(java.util.logging.Level level) throws ConfigException
ConfigException
public void setExpireTimeout(long timeout)
public long getExpireTimeout()
public void setLogMax(int max)
public java.lang.String createFullType(java.lang.String name)
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)
public WriteStream openLogStream(long timestamp, java.lang.String fullType, java.lang.String name, java.util.logging.Level level)
public long[] findMessageTimes(java.lang.String fullType, java.lang.String levelName, long minTime, long maxTime)
public LogMessage[] findMessages(java.lang.String fullType, java.lang.String levelName, long minTime, long maxTime)
public LogMessage[] findMessages(java.lang.String[] fullTypes, java.lang.String levelName, long minTime, long maxTime)
public LogMessage[] findMessagesByName(java.lang.String fullType, java.lang.String logName, java.lang.String levelName, long minTime, long maxTime)
public LogMessage[] findMessagesByName(java.lang.String[] fullTypes, java.lang.String logName, java.lang.String levelName, long minTime, long maxTime)