java.lang.Object
es.uvigo.esei.sing.textproc.logging.TextProcLogging

public final class TextProcLogging
extends java.lang.Object
Entry point to the TextProc logging functionalities.
Author:
Alejandro González García
  • Constructor Summary

    Constructors 
    Constructor Description
    TextProcLogging()  
  • Method Summary

    Modifier and Type Method Description
    static java.util.logging.Logger getLogger()
    Returns the logger previously initialized with initialize(String).
    static void initialize​(@NonNull java.lang.String appName)
    Initializes logging for the given application name.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • initialize

      public static void initialize​(@NonNull @NonNull java.lang.String appName)
      Initializes logging for the given application name. Subsequent calls to getLogger() will return a logger with the application name specified here. This method only has any effects the first time it is invoked.
      Parameters:
      appName - The application name for the logger.
      Throws:
      java.lang.IllegalArgumentException - If appName is null.
    • getLogger

      public static java.util.logging.Logger getLogger()
      Returns the logger previously initialized with initialize(String). This method always returns the same object.
      Returns:
      The described logger. It never is null.
      Throws:
      java.lang.IllegalStateException - If the logger wasn't initialized yet.