public class OneShotLogger extends NShotLogger
The logging is done via a delegate Logger
You might use it a bit like this
private static final Logger log = Logger.getLogger(MyObject.class); private static final Logger oneShotParseErrorLog = new OneShotLogger(log); ... ... if (parseErrorOnSomethingThatWeOnlywanToReportOnce == true) { oneShotParseErrorLog.log("Things seem quite screwy in your config"); }
Constructor and Description |
---|
OneShotLogger(org.apache.log4j.Logger delegateLogger) |
debug, debug, error, error, fatal, fatal, getDelegateLogger, info, info, isDebugEnabled, isEnabledFor, isInfoEnabled, warn, warn
Copyright © 2002-2015 Atlassian. All Rights Reserved.