JagLog

Description

Write a message to the server’s log file.

Syntax

#include <jagpublic.h>

JagStatus JagLog(
                 JagBoolean use_date, 
                 SQLPOINTER logmsg)

Parameters

use_date

Pass as JAG_TRUE to indicate that the message should be preceded by a timestamp in the log; pass as JAG_FALSE to log the message without a timestamp.

logmsg

A null-terminated string containing the message to be logged. The message must include a newline at the end.

Returns

Return value

To indicate

JAG_SUCCEED

Success.

JAG_FAIL

Failure. JagLog fails if the log file can not be opened or if logmsg is NULL. If the log file cannot be opened, log messages are written to the server process’ standard error device.