com.caucho.log
Class LogConfig

java.lang.Object
  extended by com.caucho.log.RotateLog
      extended by com.caucho.log.LogConfig

public class LogConfig
extends RotateLog

Environment-specific configuration.


Nested Class Summary
static class LogConfig.SubLogger
           
 
Constructor Summary
LogConfig()
           
LogConfig(boolean isSkipInit)
           
 
Method Summary
 void addHandler(java.util.logging.Handler handler)
          Adds a handler
 void addLogger(LoggerConfig logger)
          Adds a logger.
 java.lang.String getFormat()
          A format string uses EL expressions and the EL variable `log', which is an instance of LogRecord.
 java.lang.String getLevel()
          Sets the output level.
 java.lang.String getName()
          Returns the name of the logger to configure.
 java.lang.String getTagName()
          Returns the tag name.
 void init()
          Initialize the log
 void initImpl()
          Should be run with system classloader
 void setFormat(RawString format)
          A format string uses EL expressions and the EL variable `log', which is an instance of LogRecord.
 void setFormatter(java.util.logging.Formatter formatter)
          Sets the formatter.
 void setId(java.lang.String name)
          Deprecated. Use setName()
 void setLevel(java.lang.String level)
          Sets the output level.
 void setMbeanName(java.lang.String name)
          Sets the mbean-name of the logger to configure.
 void setName(java.lang.String name)
          Sets the name of the logger to configure.
 void setTimestamp(java.lang.String timestamp)
          Sets the timestamp.
 void setUseParentHandlers(boolean useParentHandlers)
          Sets the use-parent-handlers
 
Methods inherited from class com.caucho.log.RotateLog
getArchiveFormat, getPath, getPathFormat, getRolloverCount, getRotateStream, getTimestamp, setArchiveFormat, setHref, setPath, setPathFormat, setRolloverCount, setRolloverPeriod, setRolloverSize, setRolloverSizeBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogConfig

public LogConfig()

LogConfig

public LogConfig(boolean isSkipInit)
Method Detail

setId

public void setId(java.lang.String name)
Deprecated. Use setName()

Sets the name of the logger to configure.


setName

public void setName(java.lang.String name)
Sets the name of the logger to configure.


getName

public java.lang.String getName()
Returns the name of the logger to configure.


setMbeanName

public void setMbeanName(java.lang.String name)
Sets the mbean-name of the logger to configure.


setUseParentHandlers

public void setUseParentHandlers(boolean useParentHandlers)
                          throws ConfigException
Sets the use-parent-handlers

Throws:
ConfigException

setLevel

public void setLevel(java.lang.String level)
              throws ConfigException
Sets the output level.

Throws:
ConfigException

getLevel

public java.lang.String getLevel()
Sets the output level.


setTimestamp

public void setTimestamp(java.lang.String timestamp)
Sets the timestamp.


setFormat

public void setFormat(RawString format)
A format string uses EL expressions and the EL variable `log', which is an instance of LogRecord.


getFormat

public java.lang.String getFormat()
A format string uses EL expressions and the EL variable `log', which is an instance of LogRecord.


setFormatter

public void setFormatter(java.util.logging.Formatter formatter)
Sets the formatter.


addHandler

public void addHandler(java.util.logging.Handler handler)
Adds a handler


getTagName

public java.lang.String getTagName()
Returns the tag name.

Overrides:
getTagName in class RotateLog

addLogger

public void addLogger(LoggerConfig logger)
Adds a logger.


init

@PostConstruct
public void init()
          throws ConfigException,
                 java.io.IOException
Initialize the log

Overrides:
init in class RotateLog
Throws:
ConfigException
java.io.IOException

initImpl

public void initImpl()
              throws ConfigException,
                     java.io.IOException
Should be run with system classloader

Throws:
ConfigException
java.io.IOException