public class LoggingFraction extends org.wildfly.swarm.config.Logging<LoggingFraction> implements org.wildfly.swarm.spi.api.Fraction
org.wildfly.swarm.config.Logging.LoggingResourcesAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
COLOR_PATTERN |
static String |
CONSOLE |
static String |
PATTERN |
| Constructor and Description |
|---|
LoggingFraction() |
| Modifier and Type | Method and Description |
|---|---|
List<org.wildfly.swarm.config.logging.AsyncHandler> |
asyncHandlers()
Get the list of AsyncHandlers for this logger
|
LoggingFraction |
consoleHandler(org.wildfly.swarm.config.logging.Level level,
String formatter)
Add a ConsoleHandler to the list of handlers for this logger.
|
List<org.wildfly.swarm.config.logging.ConsoleHandler> |
consoleHandlers()
Get the list of ConsoleHandlers for this logger
|
static LoggingFraction |
createDebugLoggingFraction()
Create a default DEBUG logging fraction.
|
static LoggingFraction |
createDefaultLoggingFraction()
Create a default INFO logging fraction.
|
static LoggingFraction |
createDefaultLoggingFraction(org.wildfly.swarm.config.logging.Level level)
Create a default logging fraction for the specified level.
|
static LoggingFraction |
createErrorLoggingFraction()
Create a default ERROR logging fraction.
|
static LoggingFraction |
createTraceLoggingFraction()
Create a default TRACE logging fraction.
|
LoggingFraction |
customFormatter(String name,
String module,
String className)
Add a CustomFormatter to this logger
|
LoggingFraction |
customFormatter(String name,
String module,
String className,
Properties properties)
Add a CustomFormatter to this logger
|
List<org.wildfly.swarm.config.logging.CustomFormatter> |
customFormatters()
Get the list of CustomFormatter configurations
|
LoggingFraction |
customHandler(String name,
String module,
String className,
Properties properties,
String formatter)
Add a CustomHandler to this logger
|
List<org.wildfly.swarm.config.logging.CustomHandler> |
customHandlers()
Get the list of CustomHandlers for this logger
|
LoggingFraction |
defaultColorFormatter()
Configure a default color formatter named
COLOR_PATTERN. |
LoggingFraction |
defaultFormatter()
Configure a default non-color formatter named
PATTERN. |
LoggingFraction |
fileHandler(String name,
String path,
org.wildfly.swarm.config.logging.Level level,
String formatter)
Add a FileHandler to the list of handlers for this logger
|
List<org.wildfly.swarm.config.logging.FileHandler> |
fileHandlers()
Get the list of FileHandlers configured on this logger
|
LoggingFraction |
formatter(String name,
String pattern)
Add a new PatternFormatter to this Logger
|
List<org.wildfly.swarm.config.logging.PatternFormatter> |
patternFormatters()
Get the list of PatternFormatter configurations
|
LoggingFraction |
rootLogger(org.wildfly.swarm.config.logging.Level level,
String... handlers)
Add a root logger to this fraction
|
List<org.wildfly.swarm.config.logging.SyslogHandler> |
syslogHandlers()
Get the list of SyslogHandlers for this logger
|
addLoggingApiDependencies, addLoggingApiDependencies, addPropertyChangeListener, asyncHandler, asyncHandler, asyncHandler, asyncHandler, asyncHandlers, consoleHandler, consoleHandler, consoleHandler, consoleHandler, consoleHandlers, customFormatter, customFormatter, customFormatter, customFormatter, customFormatters, customHandler, customHandler, customHandler, customHandler, customHandlers, fileHandler, fileHandler, fileHandler, fileHandler, fileHandlers, getKey, logFile, logFile, logFile, logFile, logFiles, logger, logger, logger, logger, loggers, loggingProfile, loggingProfile, loggingProfile, loggingProfile, loggingProfiles, patternFormatter, patternFormatter, patternFormatter, patternFormatter, patternFormatters, periodicRotatingFileHandler, periodicRotatingFileHandler, periodicRotatingFileHandler, periodicRotatingFileHandler, periodicRotatingFileHandlers, periodicSizeRotatingFileHandler, periodicSizeRotatingFileHandler, periodicSizeRotatingFileHandler, periodicSizeRotatingFileHandler, periodicSizeRotatingFileHandlers, removePropertyChangeListener, rootLogger, rootLogger, rootLogger, rootLogger, sizeRotatingFileHandler, sizeRotatingFileHandler, sizeRotatingFileHandler, sizeRotatingFileHandler, sizeRotatingFileHandlers, subresources, syslogHandler, syslogHandler, syslogHandler, syslogHandler, syslogHandlers, useDeploymentLoggingConfig, useDeploymentLoggingConfigclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String CONSOLE
public static final String PATTERN
public static final String COLOR_PATTERN
public static LoggingFraction createTraceLoggingFraction()
public static LoggingFraction createDebugLoggingFraction()
public static LoggingFraction createErrorLoggingFraction()
public static LoggingFraction createDefaultLoggingFraction()
public static LoggingFraction createDefaultLoggingFraction(org.wildfly.swarm.config.logging.Level level)
public LoggingFraction defaultFormatter()
PATTERN.public LoggingFraction defaultColorFormatter()
COLOR_PATTERN.public LoggingFraction formatter(String name, String pattern)
name - the name of the formatterpattern - the pattern stringpublic LoggingFraction customFormatter(String name, String module, String className)
name - the name of the formattermodule - the module that the logging handler depends onclassName - the logging handler class to be usedpublic LoggingFraction customFormatter(String name, String module, String className, Properties properties)
name - the name of the formattermodule - the module that the logging handler depends onclassName - the logging handler class to be usedproperties - the propertiespublic List<org.wildfly.swarm.config.logging.PatternFormatter> patternFormatters()
public List<org.wildfly.swarm.config.logging.CustomFormatter> customFormatters()
public LoggingFraction consoleHandler(org.wildfly.swarm.config.logging.Level level, String formatter)
level - The logging levelformatter - A pattern string for the console's formatterpublic List<org.wildfly.swarm.config.logging.ConsoleHandler> consoleHandlers()
public LoggingFraction fileHandler(String name, String path, org.wildfly.swarm.config.logging.Level level, String formatter)
name - The name of the handlerpath - The log file pathlevel - The logging levelformatter - The pattern string for the formatterpublic List<org.wildfly.swarm.config.logging.FileHandler> fileHandlers()
public LoggingFraction customHandler(String name, String module, String className, Properties properties, String formatter)
name - the name of the handlermodule - the module that the handler usesclassName - the handler class nameproperties - properties for the handlerformatter - a pattern string for the formatterpublic List<org.wildfly.swarm.config.logging.CustomHandler> customHandlers()
public List<org.wildfly.swarm.config.logging.AsyncHandler> asyncHandlers()
public List<org.wildfly.swarm.config.logging.SyslogHandler> syslogHandlers()
public LoggingFraction rootLogger(org.wildfly.swarm.config.logging.Level level, String... handlers)
level - the log levelhandlers - a list of handlersCopyright © 2016 JBoss by Red Hat. All rights reserved.