Vtk_WriteLogCallback
Toolkit Reference

prevnext

Vtk_WriteLogCallback

typedef void (VTK_CALLBACK *Vtk_WriteLogCallback)
(
const Vtk_Ctxt *pCtxt,
enum Vtk_CtxtLogType type,
const char *pMsg,
void* userHdl
);

Description

This callback function specifies how the application processes logging messages. When the Toolkit logs a message or the application calls Vtk_WriteLog, the Toolkit uses this callback function to process log messages.

The default Toolkit implementation is for the application to write log messages to the log file (according to the options specified in the structure definition Vtk_LogOptions).

Parameters
pCtxt A pointer to the Toolkit context.
type The type of log message (see the Vtk_CtxtLogType enumerated type).
pMsg The log message.
userHdl The value which specifies the output logging structure, set in the Vtk_OpenLogCallback function.

Return Value

None

Notes
To override the default logging mechanism, you must provide the Vtk_WriteLogCallback, Vtk_OpenLogCallback and Vtk_CloseLogCallback functions.

See Also

Vtk_WriteLog

Vtk_LogOptions

Vtk_OpenLogCallback

Vtk_CloseLogCallback

prevnext


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