public class LoggingProfile<T extends LoggingProfile<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LoggingProfile.LoggingProfileResources
Child mutators for LoggingProfile
|
Constructor and Description |
---|
LoggingProfile(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
T |
asyncHandler(AsyncHandler value)
Add the AsyncHandler object to the list of subresources
|
T |
asyncHandler(AsyncHandlerSupplier supplier)
Install a supplied AsyncHandler object to the list of subresources
|
T |
asyncHandler(String childKey)
Create and configure a AsyncHandler object to the list of subresources
|
T |
asyncHandler(String childKey,
AsyncHandlerConsumer consumer)
Create and configure a AsyncHandler object to the list of subresources
|
T |
asyncHandlers(List<AsyncHandler> value)
Add all AsyncHandler objects to this subresource
|
T |
consoleHandler(ConsoleHandler value)
Add the ConsoleHandler object to the list of subresources
|
T |
consoleHandler(ConsoleHandlerSupplier supplier)
Install a supplied ConsoleHandler object to the list of subresources
|
T |
consoleHandler(String childKey)
Create and configure a ConsoleHandler object to the list of subresources
|
T |
consoleHandler(String childKey,
ConsoleHandlerConsumer consumer)
Create and configure a ConsoleHandler object to the list of subresources
|
T |
consoleHandlers(List<ConsoleHandler> value)
Add all ConsoleHandler objects to this subresource
|
T |
customFormatter(CustomFormatter value)
Add the CustomFormatter object to the list of subresources
|
T |
customFormatter(CustomFormatterSupplier supplier)
Install a supplied CustomFormatter object to the list of subresources
|
T |
customFormatter(String childKey)
Create and configure a CustomFormatter object to the list of subresources
|
T |
customFormatter(String childKey,
CustomFormatterConsumer consumer)
Create and configure a CustomFormatter object to the list of subresources
|
T |
customFormatters(List<CustomFormatter> value)
Add all CustomFormatter objects to this subresource
|
T |
customHandler(CustomHandler value)
Add the CustomHandler object to the list of subresources
|
T |
customHandler(CustomHandlerSupplier supplier)
Install a supplied CustomHandler object to the list of subresources
|
T |
customHandler(String childKey)
Create and configure a CustomHandler object to the list of subresources
|
T |
customHandler(String childKey,
CustomHandlerConsumer consumer)
Create and configure a CustomHandler object to the list of subresources
|
T |
customHandlers(List<CustomHandler> value)
Add all CustomHandler objects to this subresource
|
T |
fileHandler(FileHandler value)
Add the FileHandler object to the list of subresources
|
T |
fileHandler(FileHandlerSupplier supplier)
Install a supplied FileHandler object to the list of subresources
|
T |
fileHandler(String childKey)
Create and configure a FileHandler object to the list of subresources
|
T |
fileHandler(String childKey,
FileHandlerConsumer consumer)
Create and configure a FileHandler object to the list of subresources
|
T |
fileHandlers(List<FileHandler> value)
Add all FileHandler objects to this subresource
|
String |
getKey() |
T |
jsonFormatter(JsonFormatter value)
Add the JsonFormatter object to the list of subresources
|
T |
jsonFormatter(JsonFormatterSupplier supplier)
Install a supplied JsonFormatter object to the list of subresources
|
T |
jsonFormatter(String childKey)
Create and configure a JsonFormatter object to the list of subresources
|
T |
jsonFormatter(String childKey,
JsonFormatterConsumer consumer)
Create and configure a JsonFormatter object to the list of subresources
|
T |
jsonFormatters(List<JsonFormatter> value)
Add all JsonFormatter objects to this subresource
|
T |
logFile(LogFile value)
Add the LogFile object to the list of subresources
|
T |
logFile(LogFileSupplier supplier)
Install a supplied LogFile object to the list of subresources
|
T |
logFile(String childKey)
Create and configure a LogFile object to the list of subresources
|
T |
logFile(String childKey,
LogFileConsumer consumer)
Create and configure a LogFile object to the list of subresources
|
T |
logFiles(List<LogFile> value)
Add all LogFile objects to this subresource
|
T |
logger(Logger value)
Add the Logger object to the list of subresources
|
T |
logger(LoggerSupplier supplier)
Install a supplied Logger object to the list of subresources
|
T |
logger(String childKey)
Create and configure a Logger object to the list of subresources
|
T |
logger(String childKey,
LoggerConsumer consumer)
Create and configure a Logger object to the list of subresources
|
T |
loggers(List<Logger> value)
Add all Logger objects to this subresource
|
T |
patternFormatter(PatternFormatter value)
Add the PatternFormatter object to the list of subresources
|
T |
patternFormatter(PatternFormatterSupplier supplier)
Install a supplied PatternFormatter object to the list of subresources
|
T |
patternFormatter(String childKey)
Create and configure a PatternFormatter object to the list of
subresources
|
T |
patternFormatter(String childKey,
PatternFormatterConsumer consumer)
Create and configure a PatternFormatter object to the list of
subresources
|
T |
patternFormatters(List<PatternFormatter> value)
Add all PatternFormatter objects to this subresource
|
T |
periodicRotatingFileHandler(PeriodicRotatingFileHandler value)
Add the PeriodicRotatingFileHandler object to the list of subresources
|
T |
periodicRotatingFileHandler(PeriodicRotatingFileHandlerSupplier supplier)
Install a supplied PeriodicRotatingFileHandler object to the list of
subresources
|
T |
periodicRotatingFileHandler(String childKey)
Create and configure a PeriodicRotatingFileHandler object to the list of
subresources
|
T |
periodicRotatingFileHandler(String childKey,
PeriodicRotatingFileHandlerConsumer consumer)
Create and configure a PeriodicRotatingFileHandler object to the list of
subresources
|
T |
periodicRotatingFileHandlers(List<PeriodicRotatingFileHandler> value)
Add all PeriodicRotatingFileHandler objects to this subresource
|
T |
periodicSizeRotatingFileHandler(PeriodicSizeRotatingFileHandler value)
Add the PeriodicSizeRotatingFileHandler object to the list of
subresources
|
T |
periodicSizeRotatingFileHandler(PeriodicSizeRotatingFileHandlerSupplier supplier)
Install a supplied PeriodicSizeRotatingFileHandler object to the list of
subresources
|
T |
periodicSizeRotatingFileHandler(String childKey)
Create and configure a PeriodicSizeRotatingFileHandler object to the list
of subresources
|
T |
periodicSizeRotatingFileHandler(String childKey,
PeriodicSizeRotatingFileHandlerConsumer consumer)
Create and configure a PeriodicSizeRotatingFileHandler object to the list
of subresources
|
T |
periodicSizeRotatingFileHandlers(List<PeriodicSizeRotatingFileHandler> value)
Add all PeriodicSizeRotatingFileHandler objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
T |
rootLogger()
Defines the root logger for this log context.
|
T |
rootLogger(RootLogger value)
Defines the root logger for this log context.
|
T |
rootLogger(RootLoggerConsumer consumer)
Defines the root logger for this log context.
|
T |
rootLogger(RootLoggerSupplier supplier)
Defines the root logger for this log context.
|
T |
sizeRotatingFileHandler(SizeRotatingFileHandler value)
Add the SizeRotatingFileHandler object to the list of subresources
|
T |
sizeRotatingFileHandler(SizeRotatingFileHandlerSupplier supplier)
Install a supplied SizeRotatingFileHandler object to the list of
subresources
|
T |
sizeRotatingFileHandler(String childKey)
Create and configure a SizeRotatingFileHandler object to the list of
subresources
|
T |
sizeRotatingFileHandler(String childKey,
SizeRotatingFileHandlerConsumer consumer)
Create and configure a SizeRotatingFileHandler object to the list of
subresources
|
T |
sizeRotatingFileHandlers(List<SizeRotatingFileHandler> value)
Add all SizeRotatingFileHandler objects to this subresource
|
T |
socketHandler(SocketHandler value)
Add the SocketHandler object to the list of subresources
|
T |
socketHandler(SocketHandlerSupplier supplier)
Install a supplied SocketHandler object to the list of subresources
|
T |
socketHandler(String childKey)
Create and configure a SocketHandler object to the list of subresources
|
T |
socketHandler(String childKey,
SocketHandlerConsumer consumer)
Create and configure a SocketHandler object to the list of subresources
|
T |
socketHandlers(List<SocketHandler> value)
Add all SocketHandler objects to this subresource
|
LoggingProfile.LoggingProfileResources |
subresources() |
T |
syslogHandler(String childKey)
Create and configure a SyslogHandler object to the list of subresources
|
T |
syslogHandler(String childKey,
SyslogHandlerConsumer consumer)
Create and configure a SyslogHandler object to the list of subresources
|
T |
syslogHandler(SyslogHandler value)
Add the SyslogHandler object to the list of subresources
|
T |
syslogHandler(SyslogHandlerSupplier supplier)
Install a supplied SyslogHandler object to the list of subresources
|
T |
syslogHandlers(List<SyslogHandler> value)
Add all SyslogHandler objects to this subresource
|
T |
xmlFormatter(String childKey)
Create and configure a XmlFormatter object to the list of subresources
|
T |
xmlFormatter(String childKey,
XmlFormatterConsumer consumer)
Create and configure a XmlFormatter object to the list of subresources
|
T |
xmlFormatter(XmlFormatter value)
Add the XmlFormatter object to the list of subresources
|
T |
xmlFormatter(XmlFormatterSupplier supplier)
Install a supplied XmlFormatter object to the list of subresources
|
T |
xmlFormatters(List<XmlFormatter> value)
Add all XmlFormatter objects to this subresource
|
public LoggingProfile(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public LoggingProfile.LoggingProfileResources subresources()
public T periodicRotatingFileHandlers(List<PeriodicRotatingFileHandler> value)
value
- List of PeriodicRotatingFileHandler objects.public T periodicRotatingFileHandler(PeriodicRotatingFileHandler value)
value
- The PeriodicRotatingFileHandler to addpublic T periodicRotatingFileHandler(String childKey, PeriodicRotatingFileHandlerConsumer consumer)
key
- The key for the PeriodicRotatingFileHandler resourceconfig
- The PeriodicRotatingFileHandlerConsumer to usepublic T periodicRotatingFileHandler(String childKey)
key
- The key for the PeriodicRotatingFileHandler resourcepublic T periodicRotatingFileHandler(PeriodicRotatingFileHandlerSupplier supplier)
public T jsonFormatters(List<JsonFormatter> value)
value
- List of JsonFormatter objects.public T jsonFormatter(JsonFormatter value)
value
- The JsonFormatter to addpublic T jsonFormatter(String childKey, JsonFormatterConsumer consumer)
key
- The key for the JsonFormatter resourceconfig
- The JsonFormatterConsumer to usepublic T jsonFormatter(String childKey)
key
- The key for the JsonFormatter resourcepublic T jsonFormatter(JsonFormatterSupplier supplier)
public T socketHandlers(List<SocketHandler> value)
value
- List of SocketHandler objects.public T socketHandler(SocketHandler value)
value
- The SocketHandler to addpublic T socketHandler(String childKey, SocketHandlerConsumer consumer)
key
- The key for the SocketHandler resourceconfig
- The SocketHandlerConsumer to usepublic T socketHandler(String childKey)
key
- The key for the SocketHandler resourcepublic T socketHandler(SocketHandlerSupplier supplier)
public T loggers(List<Logger> value)
value
- List of Logger objects.public T logger(Logger value)
value
- The Logger to addpublic T logger(String childKey, LoggerConsumer consumer)
key
- The key for the Logger resourceconfig
- The LoggerConsumer to usepublic T logger(String childKey)
key
- The key for the Logger resourcepublic T logger(LoggerSupplier supplier)
public T asyncHandlers(List<AsyncHandler> value)
value
- List of AsyncHandler objects.public T asyncHandler(AsyncHandler value)
value
- The AsyncHandler to addpublic T asyncHandler(String childKey, AsyncHandlerConsumer consumer)
key
- The key for the AsyncHandler resourceconfig
- The AsyncHandlerConsumer to usepublic T asyncHandler(String childKey)
key
- The key for the AsyncHandler resourcepublic T asyncHandler(AsyncHandlerSupplier supplier)
public T fileHandlers(List<FileHandler> value)
value
- List of FileHandler objects.public T fileHandler(FileHandler value)
value
- The FileHandler to addpublic T fileHandler(String childKey, FileHandlerConsumer consumer)
key
- The key for the FileHandler resourceconfig
- The FileHandlerConsumer to usepublic T fileHandler(String childKey)
key
- The key for the FileHandler resourcepublic T fileHandler(FileHandlerSupplier supplier)
public T sizeRotatingFileHandlers(List<SizeRotatingFileHandler> value)
value
- List of SizeRotatingFileHandler objects.public T sizeRotatingFileHandler(SizeRotatingFileHandler value)
value
- The SizeRotatingFileHandler to addpublic T sizeRotatingFileHandler(String childKey, SizeRotatingFileHandlerConsumer consumer)
key
- The key for the SizeRotatingFileHandler resourceconfig
- The SizeRotatingFileHandlerConsumer to usepublic T sizeRotatingFileHandler(String childKey)
key
- The key for the SizeRotatingFileHandler resourcepublic T sizeRotatingFileHandler(SizeRotatingFileHandlerSupplier supplier)
public T syslogHandlers(List<SyslogHandler> value)
value
- List of SyslogHandler objects.public T syslogHandler(SyslogHandler value)
value
- The SyslogHandler to addpublic T syslogHandler(String childKey, SyslogHandlerConsumer consumer)
key
- The key for the SyslogHandler resourceconfig
- The SyslogHandlerConsumer to usepublic T syslogHandler(String childKey)
key
- The key for the SyslogHandler resourcepublic T syslogHandler(SyslogHandlerSupplier supplier)
public T customFormatters(List<CustomFormatter> value)
value
- List of CustomFormatter objects.public T customFormatter(CustomFormatter value)
value
- The CustomFormatter to addpublic T customFormatter(String childKey, CustomFormatterConsumer consumer)
key
- The key for the CustomFormatter resourceconfig
- The CustomFormatterConsumer to usepublic T customFormatter(String childKey)
key
- The key for the CustomFormatter resourcepublic T customFormatter(CustomFormatterSupplier supplier)
public T periodicSizeRotatingFileHandlers(List<PeriodicSizeRotatingFileHandler> value)
value
- List of PeriodicSizeRotatingFileHandler objects.public T periodicSizeRotatingFileHandler(PeriodicSizeRotatingFileHandler value)
value
- The PeriodicSizeRotatingFileHandler to addpublic T periodicSizeRotatingFileHandler(String childKey, PeriodicSizeRotatingFileHandlerConsumer consumer)
key
- The key for the PeriodicSizeRotatingFileHandler resourceconfig
- The PeriodicSizeRotatingFileHandlerConsumer to usepublic T periodicSizeRotatingFileHandler(String childKey)
key
- The key for the PeriodicSizeRotatingFileHandler resourcepublic T periodicSizeRotatingFileHandler(PeriodicSizeRotatingFileHandlerSupplier supplier)
public T consoleHandlers(List<ConsoleHandler> value)
value
- List of ConsoleHandler objects.public T consoleHandler(ConsoleHandler value)
value
- The ConsoleHandler to addpublic T consoleHandler(String childKey, ConsoleHandlerConsumer consumer)
key
- The key for the ConsoleHandler resourceconfig
- The ConsoleHandlerConsumer to usepublic T consoleHandler(String childKey)
key
- The key for the ConsoleHandler resourcepublic T consoleHandler(ConsoleHandlerSupplier supplier)
public T xmlFormatters(List<XmlFormatter> value)
value
- List of XmlFormatter objects.public T xmlFormatter(XmlFormatter value)
value
- The XmlFormatter to addpublic T xmlFormatter(String childKey, XmlFormatterConsumer consumer)
key
- The key for the XmlFormatter resourceconfig
- The XmlFormatterConsumer to usepublic T xmlFormatter(String childKey)
key
- The key for the XmlFormatter resourcepublic T xmlFormatter(XmlFormatterSupplier supplier)
public T logFiles(List<LogFile> value)
value
- List of LogFile objects.public T logFile(LogFile value)
value
- The LogFile to addpublic T logFile(String childKey, LogFileConsumer consumer)
key
- The key for the LogFile resourceconfig
- The LogFileConsumer to usepublic T logFile(String childKey)
key
- The key for the LogFile resourcepublic T logFile(LogFileSupplier supplier)
public T patternFormatters(List<PatternFormatter> value)
value
- List of PatternFormatter objects.public T patternFormatter(PatternFormatter value)
value
- The PatternFormatter to addpublic T patternFormatter(String childKey, PatternFormatterConsumer consumer)
key
- The key for the PatternFormatter resourceconfig
- The PatternFormatterConsumer to usepublic T patternFormatter(String childKey)
key
- The key for the PatternFormatter resourcepublic T patternFormatter(PatternFormatterSupplier supplier)
public T customHandlers(List<CustomHandler> value)
value
- List of CustomHandler objects.public T customHandler(CustomHandler value)
value
- The CustomHandler to addpublic T customHandler(String childKey, CustomHandlerConsumer consumer)
key
- The key for the CustomHandler resourceconfig
- The CustomHandlerConsumer to usepublic T customHandler(String childKey)
key
- The key for the CustomHandler resourcepublic T customHandler(CustomHandlerSupplier supplier)
public T rootLogger(RootLogger value)
public T rootLogger(RootLoggerConsumer consumer)
public T rootLogger()
public T rootLogger(RootLoggerSupplier supplier)
Copyright © 2019 JBoss by Red Hat. All rights reserved.