Class TextProcLogging
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 withinitialize(String)
.static void
initialize(@NonNull java.lang.String appName)
Initializes logging for the given application name.
-
Constructor Details
-
TextProcLogging
public TextProcLogging()
-
-
Method Details
-
initialize
Initializes logging for the given application name. Subsequent calls togetLogger()
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
- IfappName
isnull
.
-
getLogger
Returns the logger previously initialized withinitialize(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.
-