com.caucho.log
Class LogHandlerConfig
java.lang.Object
com.caucho.config.cfg.BeanConfig
com.caucho.log.LogHandlerConfig
@Configurable
public class LogHandlerConfig
- extends BeanConfig
Configuration for the tag.
Method Summary |
void |
add(java.util.logging.Handler handler)
|
protected java.lang.String |
getCdiNamed()
|
protected java.lang.String |
getDefaultScope()
|
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-handler |
void |
initImpl()
Should be run with system classloader |
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.util.logging.Level 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.cfg.BeanConfig |
addBinding, addCustomBean, addInitProgram, addOptionalStringProperty, addParam, addProperty, addStringProperty, createObjectNoInit, deploy, getBeanConfigClass, getBeanManager, getBindingList, getClassType, getComponent, getFilename, getInit, getLine, getMBeanName, getName, getObject, getStereotypeList, getUri, introspectPostInit, isDefaultService, isStartup, setBeanConfigClass, setClass, setConfigLocation, setInit, setJndiName, setMbeanClass, setMbeanInterface, setMbeanName, setName, setScope, setScopeType, setService, setType, setUri, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LogHandlerConfig
public LogHandlerConfig()
LogHandlerConfig
public LogHandlerConfig(boolean isSkipInit)
getDefaultScope
protected java.lang.String getDefaultScope()
- Overrides:
getDefaultScope
in class BeanConfig
getCdiNamed
protected java.lang.String getCdiNamed()
- Overrides:
getCdiNamed
in class BeanConfig
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.util.logging.Level 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 BeanConfig
add
@Configurable
public void add(java.util.logging.Handler handler)
init
@PostConstruct
public void init()
- Initialize the log-handler
- Overrides:
init
in class BeanConfig
initImpl
public void initImpl()
throws ConfigException
- Should be run with system classloader
- Throws:
ConfigException