DOFLogListenerlogMessage Method OpenDOF Object Access Library
Adds a message to log according to the module, level, and related Throwable.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
void logMessage(
	ref DateTime timestamp,
	DOFLogLevel level,
	string message,
	Exception t
)

Parameters

timestamp
Type: SystemDateTime
Timestamp for this message. This will never be null.
level
Type: org.opendof.core.oalDOFLogLevel
The logging level. This will never be null.
message
Type: SystemString
The text of this log message. This will never be null.
t
Type: SystemException
An exception (or other) that is related to this message, if any. May be null.
Remarks

Adds a message to log according to the module, level, and related Throwable.

The simplest implementation would something like this:

     System.out.println(timestamp.ToString() + " [" + moduleName + "] ("+level+"): " + message + (t!=null? ": "+t.getMessage() : ""));
See Also

Reference