public final class LoggingConfiguration extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static LoggingConfiguration |
createLocalLoggingConfiguration(Map<String,String> properties) |
|
Level |
getLogLevel() |
Get the log level
|
String |
getRemoteLoggingHost() |
Get the name of the host where the log should be sent to
|
int |
getRemoteLoggingPort() |
Get the port the remote log receiver is listening on
|
boolean |
isRemoteLoggingConfigured() |
Check if the adapter should send its log messages to a remote receiver
|
static LoggingConfiguration |
parseFromProperties(Map<String,String> properties) |
Create a new logging configuration from request properties
|
static LoggingConfiguration |
parseFromPropertiesWithDebugAddressGiven(Map<String,String> properties) |
public boolean isRemoteLoggingConfigured()
true if the adapter should send its log messages to a remote log receiverpublic String getRemoteLoggingHost()
public int getRemoteLoggingPort()
public Level getLogLevel()
public static LoggingConfiguration parseFromProperties(Map<String,String> properties)
properties - request propertiesIllegalArgumentException - if any of the logging configuration parameters can't be parsedpublic static LoggingConfiguration parseFromPropertiesWithDebugAddressGiven(Map<String,String> properties)
public static LoggingConfiguration createLocalLoggingConfiguration(Map<String,String> properties)
Copyright © 2019. All rights reserved.