public class TimedLogger extends Object
Constructor and Description |
---|
TimedLogger(int msecs,
org.apache.log4j.Logger log)
Constructor of the timed logger
|
Modifier and Type | Method and Description |
---|---|
void |
info(String msg)
Print to the info log level if the minimum waiting time was reached.
|
boolean |
isPrintable()
Is the log message printable (minimum interval met)?
|
public TimedLogger(int msecs, org.apache.log4j.Logger log)
msecs
- Msecs to wait before printing againlog
- Logger to print topublic void info(String msg)
msg
- Message to printpublic boolean isPrintable()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.