com.caucho.server.admin
Class LogService

java.lang.Object
  extended by com.caucho.server.admin.LogService

public class LogService
extends java.lang.Object

Persistent logging.


Nested Class Summary
 class LogService.Admin
           
 
Method Summary
 LogMessage[] findMessages(long minTime, long maxTime)
           
 LogEntry[] findRecentLogEntries(int min)
           
static LogService getLocal()
           
 void log(long timestamp, java.lang.String name, java.util.logging.Level level, java.lang.String server, java.lang.String thread, java.lang.String message)
           
 void setEnable(boolean isEnable)
          Enables the service.
 void setLevel(java.lang.String level)
          Sets the level of records to capture, default is "info".
 void setPath(java.lang.String path)
          Sets the filesystem path for storing the log recoods relative to the Management path, default is "log".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setEnable

public void setEnable(boolean isEnable)
Enables the service.


setPath

public void setPath(java.lang.String path)
Sets the filesystem path for storing the log recoods relative to the Management path, default is "log".


setLevel

public void setLevel(java.lang.String level)
              throws ConfigException
Sets the level of records to capture, default is "info".

Throws:
ConfigException

getLocal

public static LogService getLocal()

log

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

findRecentLogEntries

public LogEntry[] findRecentLogEntries(int min)

findMessages

public LogMessage[] findMessages(long minTime,
                                 long maxTime)