org.aselect.server.log
Class ASelectSystemLogger
java.lang.Object
org.aselect.system.logging.SystemLogger
org.aselect.server.log.ASelectSystemLogger
public class ASelectSystemLogger
- extends SystemLogger
The system logger for the A-Select Server.
Description:
A singleton authentication logger that inherits from
org.aselect.system.logging.SystemLogger. This logger creates a log file containing all A-Select system logging and
can be used in situations where A-Select is not functioning.
Concurrency issues:
- The class is a singleton, so the same class is used in all the classes of
the A-Select Server.
- Author:
- Alfa & Ariss
|
Method Summary |
static ASelectSystemLogger |
getHandle()
Must be used to get an ASelectSystemLogger instance. |
void |
init(java.lang.Object oSysLogging,
java.lang.String sWorkingDir)
Initializes the System Logger. |
| Methods inherited from class org.aselect.system.logging.SystemLogger |
closeHandlers, formatDetailedError, formatInternalError, init, init, isDebug, log, log, log, log, setDebug, setLevel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getHandle
public static ASelectSystemLogger getHandle()
- Must be used to get an ASelectSystemLogger instance.
Description:
Creates a new ASelectSystemLogger instance if it's still null.
Concurrency issues:
Always the same instance of the system logger is returned, because it's a
singleton.
Preconditions:
-
Postconditions:
-
- Returns:
- handle to the ASelectAuthenticationLogger
init
public void init(java.lang.Object oSysLogging,
java.lang.String sWorkingDir)
throws ASelectException
- Initializes the System Logger.
Description:
- Reads the 'target' config section
- Calls the init of the _oASelectSystemLogger
- Reads the 'target' config section
Concurrency issues:
-
Preconditions:
- The ASelectSystemLogger must be initialized.
- The ASelectConfigManager must be initialized.
- The oSysLogging may not be
NULL.
- The sWorkingDir may not be
NULL.
Postconditions:
An initialized _oASelectSystemLogger.
- Parameters:
oSysLogging - The logger config section with id='system'sWorkingDir - The A-Select working dir
- Throws:
ASelectException - if initialization went wrong
Copyright © 2008 SURFnet BV. All Rights Reserved.