public class LogConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
filePath
The log file path.
|
private int |
fileSizeInKB
The log file size in KB.
|
private Constants.LogLevel |
level
The log level.
|
| Constructor and Description |
|---|
LogConfig()
Constructs a LogConfig object with default values.
|
LogConfig(java.lang.String filePath,
int fileSizeInKB,
Constants.LogLevel level)
Constructs a LogConfig object with specified values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFilePath()
Gets the log file path.
|
int |
getFileSizeInKB()
Gets the log file size in KB.
|
Constants.LogLevel |
getLevel()
Gets the log level.
|
void |
setFilePath(java.lang.String filePath)
Sets the log file path.
|
void |
setFileSizeInKB(int fileSizeInKB)
Sets the log file size in KB.
|
void |
setLevel(Constants.LogLevel level)
Sets the log level.
|
java.lang.String |
toString()
Returns a string representation of the LogConfig object.
|
private java.lang.String filePath
private int fileSizeInKB
private Constants.LogLevel level
public LogConfig()
public LogConfig(java.lang.String filePath,
int fileSizeInKB,
Constants.LogLevel level)
filePath - The log file path.fileSizeInKB - The log file size in KB.level - The log level.public java.lang.String getFilePath()
public void setFilePath(java.lang.String filePath)
filePath - The log file path to set.public int getFileSizeInKB()
public void setFileSizeInKB(int fileSizeInKB)
fileSizeInKB - The log file size to set in KB.public Constants.LogLevel getLevel()
public void setLevel(Constants.LogLevel level)
level - The log level to set.public java.lang.String toString()
toString in class java.lang.Object