Package adams.core.logging
Class ConsoleLoggingObject
- java.lang.Object
-
- adams.core.logging.ConsoleLoggingObject
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractRecordActorAdded
,AbstractRecordActorEnclosed
public class ConsoleLoggingObject extends Object implements Serializable
A basic object with logging support in the console.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsoleLoggingObject()
Initializes the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Logger
getLogger()
Returns the logger in use.protected void
initializeLogger()
Initializes the logger.boolean
isLoggingEnabled()
Returns whether logging is enabled.
-
-
-
Field Detail
-
m_Logger
protected transient Logger m_Logger
the logger in use.
-
-
Method Detail
-
initializeLogger
protected void initializeLogger()
Initializes the logger.
Default implementation uses the class name.
-
getLogger
public Logger getLogger()
Returns the logger in use.- Returns:
- the logger
-
isLoggingEnabled
public boolean isLoggingEnabled()
Returns whether logging is enabled.- Returns:
- true if not
Level.OFF
-
-