org.zoolu.tools
Class RotatingLog
java.lang.Object
|
+--org.zoolu.tools.Log
|
+--org.zoolu.tools.RotatingLog
- public class RotatingLog
- extends Log
Class RotatingLog extends Log with log file rotation.
|
Field Summary |
static int |
DAY
Day |
static int |
HOUR
Hour |
static int |
MINUTE
Minute |
static int |
MONTH
Month |
| Fields inherited from class org.zoolu.tools.Log |
MAX_SIZE |
|
Constructor Summary |
RotatingLog(java.lang.String filename,
java.lang.String logname,
int loglevel,
long logsize,
int n_rotations,
int t_scale,
int t_value)
Creates a new RotatingLog file filename
. |
|
Method Summary |
Log |
print(java.lang.String message,
int level)
Prints the log if level isn't greater than the Log verbose_level |
RotatingLog |
rotate()
Rotates logs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MONTH
public static final int MONTH
- Month
DAY
public static final int DAY
- Day
HOUR
public static final int HOUR
- Hour
MINUTE
public static final int MINUTE
- Minute
RotatingLog
public RotatingLog(java.lang.String filename,
java.lang.String logname,
int loglevel,
long logsize,
int n_rotations,
int t_scale,
int t_value)
- Creates a new RotatingLog file filename
. RotatingLog size is limited to logsize [bytes]
rotate
public RotatingLog rotate()
- Rotates logs
print
public Log print(java.lang.String message,
int level)
- Prints the log if level isn't greater than the Log verbose_level
- Overrides:
print in class Log