public class CentralLoggerClientConfig
extends java.lang.Object
implements java.io.Externalizable
| 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 java.lang.Boolean |
isServerSideLogging
A flag indicating if writing to log files is server-side.
|
private java.util.Map<java.lang.String,java.util.logging.Level> |
loggerNameLevelMap
Logger name : level pairs.
|
| Constructor and Description |
|---|
CentralLoggerClientConfig()
Default constructor for CentralLoggerLevels.
|
CentralLoggerClientConfig(java.util.Map<java.lang.String,java.util.logging.Level> loggerLevelMap)
Public constructor.
|
CentralLoggerClientConfig(java.util.Map<java.lang.String,java.util.logging.Level> loggerLevelMap,
java.lang.String filePath,
int fileLimit,
int fileCount,
boolean isServerSideLogging)
Public constructor with takes values for all fields as parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFileCount()
Getter for the file count, or the max number of files before file overwrite starts.
|
int |
getFileLimit()
Getter for the file limit, or the max bytes in a log file before rotation.
|
java.lang.String |
getFilePath()
Getter for the path to the log file.
|
java.util.Map<java.lang.String,java.util.logging.Level> |
getLoggerLevels()
Getter for the logger name : level map.
|
java.lang.Boolean |
isServerSideLoggingEnabled()
Getter for the flag indicating if writing to log files is server-side.
|
void |
readExternal(java.io.ObjectInput in)
Reads
loggerNameLevelMap as Set of strings and isServerSideLogging as Boolean. |
void |
writeExternal(java.io.ObjectOutput out)
Writes out
loggerNameLevelMap as Set of strings ans isServerSideLogging as Boolean. |
private final java.util.Map<java.lang.String,java.util.logging.Level> loggerNameLevelMap
private java.lang.Boolean isServerSideLogging
private java.lang.String filePath
private int fileLimit
private int fileCount
public CentralLoggerClientConfig()
public CentralLoggerClientConfig(java.util.Map<java.lang.String,java.util.logging.Level> loggerLevelMap)
loggerLevelMap - Logger name : level pairs.public CentralLoggerClientConfig(java.util.Map<java.lang.String,java.util.logging.Level> loggerLevelMap,
java.lang.String filePath,
int fileLimit,
int fileCount,
boolean isServerSideLogging)
loggerLevelMap - Logger name : level pairs.filePath - The path to the log file.fileLimit - The file limit, or the max bytes in a log file before rotation.fileCount - The file count, or the max number of files before file overwrite starts.isServerSideLogging - A flag indicating if writing to log files is server-side.public java.util.Map<java.lang.String,java.util.logging.Level> getLoggerLevels()
public java.lang.Boolean isServerSideLoggingEnabled()
public java.lang.String getFilePath()
public int getFileLimit()
public int getFileCount()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
loggerNameLevelMap as Set of strings ans isServerSideLogging as Boolean.writeExternal in interface java.io.Externalizableout - The stream to write the object tojava.io.IOException - If any I/O exceptions occurpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
loggerNameLevelMap as Set of strings and isServerSideLogging as Boolean.readExternal in interface java.io.Externalizablein - The stream to read data from in order to restore the objectjava.io.IOException - If any I/O exceptions occurjava.lang.ClassNotFoundException