Modifier and Type | Method and Description |
---|---|
LogConfig |
addLog(String name)
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
LogDescription.LogLevel |
getConsoleLogLevel()
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
String |
getConsoleMonitoredLog()
Gets the console monitored log path.
|
String |
getDefaultLogDirectory()
Gets the default log directory.
|
LogConfig |
getLog(String name)
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
int |
getLoggingQueueSize()
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
List<LogConfig> |
getLogs()
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
String |
getServerLog()
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
boolean |
isAsyncLogging()
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
boolean |
isLoggingThreadNames()
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
LogConfig |
removeLog(String name)
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
void |
setAsyncLogging(boolean asyncLogging)
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
void |
setConsoleLogLevel(LogDescription.LogLevel level)
Sets the console log level.
|
void |
setConsoleMonitoredLog(String path)
Sets the console monitored log path.
|
void |
setDefaultLogDirectory(String directory)
Sets the default log directory path.
|
void |
setLoggingQueueSize(int size)
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
void |
setLogThreadNames(boolean threadNameLogging)
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
void |
setServerLog(String serverLog)
Deprecated.
since 6.4.0. This setting is used to configure the Diffusion
log implementation, which is deprecated in favor of Log4j 2.
The Diffusion log implementation will be removed in a future
release, together with this setting.
|
void setConsoleLogLevel(LogDescription.LogLevel level) throws ConfigException
This sets the log level to start console logging at.
If not specified, LogDescription.LogLevel.INFO
is assumed.
level
- log levelConfigException
- if unable to set the property@Deprecated LogDescription.LogLevel getConsoleLogLevel()
@Deprecated void setServerLog(String serverLog) throws ConfigException
The log to use for the server. This must be specified server side but is ignored client side.
serverLog
- the log to use for the server. This must be the name of
a configured log.ConfigException
- if unable to set the property@Deprecated String getServerLog()
void setDefaultLogDirectory(String directory) throws ConfigException
The default log directory for all logs, although this can be overridden for each log. The directory is also used for the daily ConnectionCount statistics file.
If not set, the default path is "logs".
If the path is relative, it is evaluated relative to the Diffusion installation directory.
directory
- the default log directoryConfigException
- if unable to set the propertyString getDefaultLogDirectory()
void setConsoleMonitoredLog(String path) throws ConfigException
Specifies the log file made available to the Diffusion management console.
If not set, the default path is "Server.log".
If the path is relative, it is evaluated relative to the default log directory.
path
- the console monitored log pathConfigException
- if unable to set the propertyString getConsoleMonitoredLog()
@Deprecated void setAsyncLogging(boolean asyncLogging) throws ConfigException
Indicates whether logging is asynchronous, that is performed by a separate thread as opposed to being performed in line by the logging thread.
By default this is set to true but in some environments there may be issues with this and it may need to be turned off.
asyncLogging
- true to set async logging on.ConfigException
- if unable to set the property@Deprecated boolean isAsyncLogging()
@Deprecated void setLoggingQueueSize(int size) throws ConfigException
If not explicitly set, this defaults to 128k. Normally this would not need to be changed.
size
- the maximum number of entries in the asynchronous logging
event queue.ConfigException
- if unable to set property@Deprecated int getLoggingQueueSize()
@Deprecated void setLogThreadNames(boolean threadNameLogging) throws ConfigException
By default the thread name is logged.
This option applies only to asynchronous logging.
threadNameLogging
- false to set the option to not log thread namesConfigException
- if unable to set the property.@Deprecated boolean isLoggingThreadNames()
@Deprecated List<LogConfig> getLogs()
@Deprecated LogConfig getLog(String name)
name
- the log definition name@Deprecated LogConfig addLog(String name) throws ConfigException
name
- the log definition nameConfigException
- if unable to add new log definition@Deprecated LogConfig removeLog(String name) throws ConfigException
name
- the definition nameConfigException
- if unable to add new log definitionCopyright © 2022 Push Technology Ltd. All Rights Reserved.