formatOutput

Type: Boolean

Availability: Read or write at any time

The formatOutput property of the JadeLog class specifies whether the date, time, process-thread identifier, and selector are output with each message to the log file.

By default, the date, time, process identifier, and thread identifier are output with each message; that is, this property is set to true. The date is output in yyyy/MM/dd format (for example, 2007/05/26) and the time in HH:mm:ss format including milliseconds (for example, 15:01:31.985).

As the date and time formats are fixed, you cannot change either format.

The following example shows messages output to a log file when this property is set to the default value of true.

2007/05/26 05:01:31.985 00f58-b3c MyLogging: starting up
2007/05/26 05:01:31.985 00f58-b3c MyLogging: tracing about to start on a client
2007/05/26 05:01:31.985 00f58-b3c MyLogging: start time: 26 May 2007, 05:01:31
2007/05/26 05:01:34.281 00f58-b3c MyLogging: all done

In the first line of the above example, 00f58 is the operating system process (that is, the JADE node) and b3c is the thread (that is, the JADE process).

The following example shows the same log file data when only messages are output; that is, this property is set to false.

starting up
tracing about to start on a client
start time: 26 May 2007, 05:01:31
all done