com.softwareag.um.io.Logger Class Reference

The class used to log messages in UM Transport. More...

Public Member Functions

void addLogListener (LogListener listener)
 Adds a client provided LogListener to intercept all the log messages from the transport so they can be reported and logged in a custom mechanism. More...
 
boolean delLogListener (LogListener listener)
 Removes an existing LogListener from the logging mechanism. More...
 
void log (String msg)
 Write a message to System.err. More...
 
void log (Throwable th)
 Write the stack trace of the Throwable to System.err. More...
 

Static Public Member Functions

static Logger getLogger ()
 Get the active Logger instance. More...
 

Detailed Description

The class used to log messages in UM Transport.

Member Function Documentation

void com.softwareag.um.io.Logger.addLogListener ( LogListener  listener)

Adds a client provided LogListener to intercept all the log messages from the transport so they can be reported and logged in a custom mechanism.

Parameters
listenerLogListener to be added to the list
boolean com.softwareag.um.io.Logger.delLogListener ( LogListener  listener)

Removes an existing LogListener from the logging mechanism.

Parameters
listener
Returns
true it the listener requested to be removed was deleted from the list
static Logger com.softwareag.um.io.Logger.getLogger ( )
static

Get the active Logger instance.

Returns
Logger the Logger instance which UM Transport is using
void com.softwareag.um.io.Logger.log ( String  msg)

Write a message to System.err.

Parameters
msgthe message to log
void com.softwareag.um.io.Logger.log ( Throwable  th)

Write the stack trace of the Throwable to System.err.

Parameters
ththe Throwable to log