Vtk_WriteLog
Toolkit Reference

prevnext

Vtk_WriteLog

include <vtk_error.h>
include <vtk_defs.h>
void Vtk_WriteLog(
const Vtk_Ctxt *pCtxt, /* input */
enum Vtk_CtxtLogType type, /* input */
const char *pMsg /* input */
);

Description

This function writes a message into the log file or invokes any specified application specific WriteLog callback function.

An application can use this function to put extra information into the log file that was opened by the Vtk_OpenLog function. The default Toolkit implementation is to write a message to the log file in the following format:

LogType: Timestamp MessageDescription

For example:

I: [28/Feb/2000 10:58:33.172 -0800] Vtk_CertLoadFromFile: Loading certificate from \test\test_cert.cer
D: [28/Feb/2000 10:58:33.413 -0800] CrtInit: Operation completed
successfully
I: [28/Feb/2000 10:58:33.413 -0800] CrtValidate CRT Request sent to ci.valicert.net (port 80)
E: [28/Feb/2000 13:36:44.740 -0800] CrtValidate: Unable to validate the response from the VA Source
File:D:\src\cryptosoft\libs\vctoolkit\vtk_qcrt.c (374)

Parameters
pCtxt A pointer to the Toolkit context.
type The type of log message (see the enumerated type Vtk_CtxtLogType for details).
pMsg The log message.

Return Value

None

Notes
To provide an alternate log writing function define Vtk_OpenLogCallback, Vtk_CloseLogCallback, and Vtk_WriteLogCallback.


See Also

Data Structures

Vtk_WriteLogCallback

Vtk_CtxtSetOption

Vtk_LogOptions

Vtk_OpenLog

prevnext


ValiCert, Inc.
http://www.valicert.com
Voice: +1.650.567.5469
Fax: (+1.650.254.2148
support@valicert.com