Developing Database Drivers for AOLserver -- Ns_PdLog

### Ns_PdLog

#### Overview

Send a formatted message to the client.

#### Syntax

        void Ns_PdLog(Ns_PdLogMsgType errtype, char *fmt, ...);

#### Description

The Ns_PdLog function sends a formatted messages to the client. Messages are sent to syslog, but not to the server log. Allowable values for the log type are the following with a default type of Error:

- Notice: Something interesting occurred.

- Error: Something bad occurred. It is recommended that you send an exception message back to the server with Ns_PdSendString so it can perform its own exception handling.

- Trace: Log something to proxy daemon trace file.

#### Example

        Ns_PdLog(Notice, "Active transaction aborted (%s)",
        exceptionMsg);

Top of Page
Copyright © 1998-99 America Online, Inc.