|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.Log
public abstract class Log
Manages the logging of exceptions and status information.
To select a particular implementation with which to log, set the system property
ca.on.uhn.hl7.log
to the fully qualified class name of a subclass
of Log before getInstance() is first called. If this property is not set, the
default FileLog is used with the log files "hl7_exceptions_
The logs entries arising from a particular VM can be named, to distinguish them from log entries from other VMs. To do this, set the system property "ca.uhn.hl7v2.log.name" to something descriptive.
Constructor Summary | |
---|---|
Log()
Deprecated. |
Method Summary | |
---|---|
abstract java.lang.String |
getDescription()
Deprecated. Returns a description of where logged data are being stored. |
static Log |
getInstance()
Deprecated. Returns the singleton instance of Log. |
abstract void |
log(java.lang.Exception e,
java.lang.String message)
Deprecated. Logs an Exception. |
abstract void |
log(java.lang.String status)
Deprecated. Logs a status message. |
static void |
main(java.lang.String[] args)
Deprecated. |
static void |
tryToLog(java.lang.Exception e,
java.lang.String message)
Deprecated. Convenience method for logging exceptions - if a LogException is thrown while logging, the original exception is written to std out and no exception is thrown by this method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static Log getInstance() throws LogException
Returns the singleton instance of Log. The Log returned will be an instance of a subclass that uses a specific means of logging (e.g. logging to a particular text file or database).
LogException
- there is a problem opening the Log or the subclass
specified can not be found or is not in fact a subclass of Log.public static void tryToLog(java.lang.Exception e, java.lang.String message)
public abstract void log(java.lang.Exception e, java.lang.String message) throws LogException
LogException
- if there is an error writing to the log.public abstract void log(java.lang.String status) throws LogException
LogException
- if there is an error writing to the log.public abstract java.lang.String getDescription()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |