Class LoggerFactory

java.lang.Object
com.scriptbasic.log.LoggerFactory

public class LoggerFactory
extends java.lang.Object
Author:
Peter Verhas date Aug 7, 2012
  • Constructor Summary

    Constructors 
    Constructor Description
    LoggerFactory()  
  • Method Summary

    Modifier and Type Method Description
    static Logger getBasicLogger()  
    static Logger getLogger()
    Get the logger that has the name which is the same as the name of the class where the logger is used.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getLogger

      public static Logger getLogger()
      Get the logger that has the name which is the same as the name of the class where the logger is used.

      Loggers are usually stored in static fields.

      Returns:
      the logger instance.
    • getBasicLogger

      public static Logger getBasicLogger()