public static class CentralLoggerServer.Configs
extends java.lang.Object
CentralLoggerServer. That is supposed to be done by the
related builder CentralLoggerServer.ConfigsBuilder. A convenient static method
fromDirectory(DirectoryService) is available for reading the configs from the server
directory
and can be used instead of directly calling the builder.| Modifier and Type | Field and Description |
|---|---|
private int |
fileCount
The file count, or the max number of files before file overwrite starts.
|
private int |
fileLimit
The file limit, or the max bytes in a log file before rotation.
|
private java.lang.String |
filePath
The path to the log file.
|
private boolean |
hasConsole
A flag indicating if console logging is enabled.
|
private boolean |
isServerSide
A flag indicating if server-side logging enabled.
|
private java.util.Map<java.lang.String,java.util.logging.Level> |
loggerLevelPairs
The logger name : level pairs from configs.
|
private java.util.logging.Level |
rootLevel
The root logger level.
|
private java.util.logging.Level |
spawnerLevel
The spawner logger level.
|
| Modifier | Constructor and Description |
|---|---|
private |
Configs()
Private constructor for centralLogger.Configs.
|
| Modifier and Type | Method and Description |
|---|---|
static CentralLoggerServer.Configs |
fromDirectory(DirectoryService ds)
A convenience static method for reading the configs from the server directory.
|
int |
getFileCount()
Returns the file count (max number of files before file overwrite starts).
|
int |
getFileLimit()
Returns the file limit (max bytes in a log file before rotation).
|
java.lang.String |
getFilePath()
Returns the log file path.
|
java.util.logging.Level |
getRootLevel()
Returns the root logger level.
|
java.util.logging.Level |
getSpawnerLevel()
Returns the spawner logger level.
|
boolean |
hasConsole()
Returns a flag indicating if console logging is enabled.
|
boolean |
isServerSide()
Returns a flag indicating if server-side logging is enabled.
|
java.lang.String |
toString()
Returns the string representation of the Configs.
|
private boolean isServerSide
private boolean hasConsole
private java.lang.String filePath
private java.util.logging.Level rootLevel
private java.util.logging.Level spawnerLevel
private int fileLimit
private int fileCount
private java.util.Map<java.lang.String,java.util.logging.Level> loggerLevelPairs
public static CentralLoggerServer.Configs fromDirectory(DirectoryService ds)
ds - The directory service.public java.lang.String getFilePath()
public boolean isServerSide()
public boolean hasConsole()
public java.util.logging.Level getRootLevel()
public java.util.logging.Level getSpawnerLevel()
public int getFileLimit()
public int getFileCount()
public java.lang.String toString()
toString in class java.lang.Object