public class LogConfig extends RotateLog
Modifier and Type | Class and Description |
---|---|
static class |
LogConfig.SubLogger |
Constructor and Description |
---|
LogConfig() |
LogConfig(boolean isSkipInit) |
Modifier and Type | Method and Description |
---|---|
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
|
getArchiveFormat, getPath, getPathFormat, getRolloverCount, getRotateStream, getTimestamp, setArchiveFormat, setHref, setPath, setPathFormat, setRolloverCount, setRolloverPeriod, setRolloverSize, setRolloverSizeBytes
public void setId(java.lang.String name)
public void setName(java.lang.String name)
public java.lang.String getName()
public void setMbeanName(java.lang.String name)
public void setUseParentHandlers(boolean useParentHandlers) throws ConfigException
ConfigException
public void setLevel(java.lang.String 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 addHandler(java.util.logging.Handler handler)
public java.lang.String getTagName()
getTagName
in class RotateLog
public void addLogger(LoggerConfig logger)
@PostConstruct public void init() throws ConfigException, java.io.IOException
init
in class RotateLog
ConfigException
java.io.IOException
public void initImpl() throws ConfigException, java.io.IOException
ConfigException
java.io.IOException