public class


extends NShotLogger
   ↳ com.atlassian.jira.util.log.NShotLogger
     ↳ com.atlassian.jira.util.log.OneShotLogger

Class Overview

An Log4J logger wrapper than will only log 1 times After maxTimes number of calls the logger silently discards thee logging output.

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");


Public Constructors
OneShotLogger(Logger delegateLogger)
Inherited Methods
From class com.atlassian.jira.util.log.NShotLogger
From class java.lang.Object

Public Constructors

public OneShotLogger (Logger delegateLogger)