All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cisco.oss.foundation.logging.transactions.DummyLogger Maven / Gradle / Ivy

Go to download

This project is the logging log4j implementation library in the cisco vss foundation runtime

There is a newer version: 1.2.1-2
Show newest version
package com.cisco.oss.foundation.logging.transactions;

import org.slf4j.Logger;

/**
 * Class for logger which does no logging.
 * This class is used in multi-threaded transaction:
 * Each thread create DummyLogger instance in order to have a components list that will calculate components processing time within this thread
 * Eventually the components list of the DummyLogger instance is added to ComponentsMultiThread object of the main logger that will log all components
 * @author abrandwi
 *
 */
public class DummyLogger extends TransactionLogger {

  // ********* Public methods *********

  public static void start(final Logger logger, final Logger auditor) {
    createLoggingAction(logger, auditor, new DummyLogger());
  }

  public static void finish() {
    DummyLogger dummyLogger = (DummyLogger) getInstance();
    if (dummyLogger == null) {
      return;
    }

    dummyLogger.end();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy