@Configurable public class LogHandlerConfig extends BeanConfig
_bean
Constructor and Description |
---|
LogHandlerConfig() |
LogHandlerConfig(boolean isSkipInit) |
Modifier and Type | Method and Description |
---|---|
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
|
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
public LogHandlerConfig()
public LogHandlerConfig(boolean isSkipInit)
protected java.lang.String getDefaultScope()
getDefaultScope
in class BeanConfig
protected java.lang.String getCdiNamed()
getCdiNamed
in class BeanConfig
public void setId(java.lang.String name)
public void setPath(Path path)
public void setPathFormat(java.lang.String pathFormat)
public void setArchiveFormat(java.lang.String archiveFormat)
public void setRolloverPeriod(Period rolloverPeriod)
public void setRolloverSize(Bytes size)
public void setRolloverCount(int count)
public void setUseParentHandlers(boolean useParentHandlers) throws ConfigException
ConfigException
public void setLevel(java.util.logging.Level level) throws ConfigException
ConfigException
public java.lang.String getLevel()
public void setTimestamp(java.lang.String timestamp)
public void setFormat(RawString format)
public java.lang.String getFormat()
public void setFormatter(java.util.logging.Formatter formatter)
public void setFilter(java.util.logging.Filter filter)
public java.lang.String getTagName()
getTagName
in class BeanConfig
@Configurable public void add(java.util.logging.Handler handler)
@PostConstruct public void init()
init
in class BeanConfig
public void initImpl() throws ConfigException
ConfigException