com.caucho.log
Class LogHandlerConfig

java.lang.Object
  extended by com.caucho.webbeans.cfg.WbComponentConfig
      extended by com.caucho.config.types.BeanConfig
          extended by com.caucho.log.LogHandlerConfig

public class LogHandlerConfig
extends BeanConfig

Configures a log handler


Field Summary
 
Fields inherited from class com.caucho.webbeans.cfg.WbComponentConfig
_comp
 
Constructor Summary
LogHandlerConfig()
           
 
Method Summary
 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 getTagName()
          Returns the tag name.
 void init()
          Initialize the log.
 void setArchiveFormat(java.lang.String archiveFormat)
          Sets the archive-format
 void setFilter(java.util.logging.Filter filter)
          Sets the filter.
 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 setPath(Path path)
          Sets the path
 void setPathFormat(java.lang.String pathFormat)
          Sets the path-format
 void setRolloverCount(int count)
          Sets the rollover-count
 void setRolloverPeriod(Period rolloverPeriod)
          Sets the rollover-period
 void setRolloverSize(Bytes size)
          Sets the rollover-size
 void setTimestamp(java.lang.String timestamp)
          Sets the timestamp.
 void setUseParentHandlers(boolean useParentHandlers)
          Sets the use-parent-handlers
 
Methods inherited from class com.caucho.config.types.BeanConfig
getBeanConfigClass, getDefaultScope, getFilename, getLine, getMBeanName, getUri, introspectPostInit, setBeanConfigClass, setClass, setConfigLocation, setJndiName, setMbeanClass, setMbeanInterface, setMbeanName, setType, setUri
 
Methods inherited from class com.caucho.webbeans.cfg.WbComponentConfig
addBinding, addOptionalStringProperty, addParam, addStringProperty, createObjectNoInit, deploy, getBindingList, getClassType, getComponent, getComponentFactory, getComponentType, getInit, getName, getObject, getType, setComponentType, setInit, setName, setScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogHandlerConfig

public LogHandlerConfig()
Method Detail

setId

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

Sets the name of the logger to configure.


setPath

public void setPath(Path path)
Sets the path


setPathFormat

public void setPathFormat(java.lang.String pathFormat)
Sets the path-format


setArchiveFormat

public void setArchiveFormat(java.lang.String archiveFormat)
Sets the archive-format


setRolloverPeriod

public void setRolloverPeriod(Period rolloverPeriod)
Sets the rollover-period


setRolloverSize

public void setRolloverSize(Bytes size)
Sets the rollover-size


setRolloverCount

public void setRolloverCount(int count)
Sets the rollover-count


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.


setFilter

public void setFilter(java.util.logging.Filter filter)
Sets the filter.


getTagName

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

Overrides:
getTagName in class WbComponentConfig

init

public void init()
          throws ConfigException
Initialize the log.

Overrides:
init in class BeanConfig
Throws:
ConfigException