com.caucho.env.log
Class LogSystem

java.lang.Object
  extended by com.caucho.env.service.AbstractResinSubSystem
      extended by com.caucho.env.log.LogSystem
All Implemented Interfaces:
ResinSubSystem
Direct Known Subclasses:
ProLogSystem

@Service
public class LogSystem
extends AbstractResinSubSystem


Field Summary
 
Fields inherited from interface com.caucho.env.service.ResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER
 
Constructor Summary
LogSystem()
           
 
Method Summary
 java.lang.String createFullType(java.lang.String name)
           
 LogMessage[] findMessages(java.lang.String fullType, 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)
           
 
Methods inherited from class com.caucho.env.service.AbstractResinSubSystem
destroy, getStartPriority, getStopPriority, preCreate, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogSystem

public LogSystem()
Method Detail

init

@PostConstruct
public void init()

getCurrent

public static LogSystem getCurrent()

setLevel

public void setLevel(java.util.logging.Level level)
              throws ConfigException
Throws:
ConfigException

setExpireTimeout

public void setExpireTimeout(long timeout)

getExpireTimeout

public long getExpireTimeout()

createFullType

public java.lang.String createFullType(java.lang.String name)

log

public void log(java.lang.String fullType,
                java.lang.String message)

log

public void log(java.lang.String fullType,
                java.lang.String name,
                java.util.logging.Level level,
                java.lang.String message)

log

public void log(long timestamp,
                java.lang.String fullType,
                java.lang.String name,
                java.util.logging.Level level,
                java.lang.String message)

logStream

public void logStream(java.lang.String fullType,
                      java.io.InputStream is)

logStream

public void logStream(long timestamp,
                      java.lang.String fullType,
                      java.lang.String name,
                      java.util.logging.Level level,
                      java.io.InputStream is)

openLogStream

public WriteStream openLogStream(java.lang.String fullType)

openLogStream

public WriteStream openLogStream(long timestamp,
                                 java.lang.String fullType,
                                 java.lang.String name,
                                 java.util.logging.Level level)

findMessageTimes

public long[] findMessageTimes(java.lang.String fullType,
                               java.lang.String levelName,
                               long minTime,
                               long maxTime)

findMessages

public LogMessage[] findMessages(java.lang.String fullType,
                                 java.lang.String levelName,
                                 long minTime,
                                 long maxTime)

findMessagesByName

public LogMessage[] findMessagesByName(java.lang.String fullType,
                                       java.lang.String logName,
                                       java.lang.String levelName,
                                       long minTime,
                                       long maxTime)