@ConfigRoot(phase=RUN_TIME) public final class LogConfig extends Object
Modifier and Type | Field and Description |
---|---|
Map<String,CategoryConfig> |
categories
Logging categories.
|
ConsoleConfig |
console
Console logging.
|
Map<String,ConsoleConfig> |
consoleHandlers
Console handlers.
|
FileConfig |
file
File logging.
|
Map<String,FileConfig> |
fileHandlers
File handlers.
|
Map<String,CleanupFilterConfig> |
filters
Log cleanup filters - internal use.
|
Level |
level
The log level of the root category, which is used as the default log level for all categories.
|
Level |
minLevel
The default minimum log level
|
SyslogConfig |
syslog
Syslog logging.
|
Map<String,SyslogConfig> |
syslogHandlers
Syslog handlers.
|
Constructor and Description |
---|
LogConfig() |
@ConfigItem(defaultValue="INFO") public Level level
Level.FATAL
Level.ERROR
Level.WARN
Level.INFO
Level.DEBUG
Level.TRACE
@ConfigItem(defaultValue="INFO") public Level minLevel
@ConfigItem(name="category") @ConfigDocSection public Map<String,CategoryConfig> categories
Logging is done on a per-category basis. Each category can be independently configured. A configuration which applies to a category will also apply to all sub-categories of that category, unless there is a more specific matching sub-category configuration.
@ConfigItem(name="handler.console") @ConfigDocSection public Map<String,ConsoleConfig> consoleHandlers
The named console handlers configured here can be linked on one or more categories.
@ConfigItem(name="handler.file") @ConfigDocSection public Map<String,FileConfig> fileHandlers
The named file handlers configured here can be linked on one or more categories.
@ConfigItem(name="handler.syslog") @ConfigDocSection public Map<String,SyslogConfig> syslogHandlers
The named syslog handlers configured here can be linked on one or more categories.
@ConfigDocSection public ConsoleConfig console
Console logging is enabled by default.
@ConfigDocSection public FileConfig file
Logging to a file is also supported but not enabled by default.
@ConfigDocSection public SyslogConfig syslog
Logging to a syslog is also supported but not enabled by default.
@ConfigItem(name="filter") @ConfigDocSection public Map<String,CleanupFilterConfig> filters
Copyright © 2020 JBoss by Red Hat. All rights reserved.