Package smjg.libs.sdwf.messagelog

Message logging for debugging. More...


Functions

 debug (messageLog)
void addLogMonitor (char[] public(*monitor)())
 Adds a monitor to be called each time a message is logged.


Detailed Description

Message logging for debugging.

The smjg.libs.sdwf.messagelog module implements logging of window messages for debugging purposes. To enable message logging, set the -debug=messageLog compiler option.

Since:
0.5a
Bug:
If a message handler exits via a thrown exception, then the nesting level may sometimes be messed up.

Function Documentation

void smjg.libs.sdwf.messagelog.addLogMonitor ( char[]public(*)()  monitor  ) 

Adds a monitor to be called each time a message is logged.

A monitor is a function that defines a string that will be written to the log file when a message is logged. This is useful for tracking the state of some object.

Parameters:
monitor function that returns a string that will be written as a line to the log file.

smjg.libs.sdwf.messagelog.debug ( messageLog   ) 

Writes details of a message to the log file.

Parameters:
action the action that triggered a message to be logged.
windowHandle handle of the window to which the message was sent.
message identifier of the message.
wParam the first message-specific parameter.
lParam the second message-specific parameter.


Generated on Sun Jan 11 21:54:15 2009 for Stewart's D Windows Framework by  doxygen 1.5.4