Vtk_OpenLogCallback
Toolkit Reference

prevnext

Vtk_OpenLogCallback

typedef Vtk_uint32
(VTK_CALLBACK *Vtk_OpenLogCallback)
(
const Vtk_Ctxt *pCtxt,
void **userHdl
);

Description

This callback function is used to open the log output stream.

When the application calls Vtk_OpenLog to open logging the Toolkit uses this callback function to initialize the logging resource.

Parameters

pCtxt A pointer to the Toolkit context.
userHdl An application specific value, which is passed to the other logging callback functions. The Toolkit treats this value as opaque.

Return Value
VTK_OK This indicates the logging output stream was opened correctly.
!VTK_OK This indicates the application has detected a problem and does not want the Toolkit to use logging.

Notes
You can provide your own function to open an alternative store location like a database. In this case set a pointer to the structure defining an alternative logging resource.
The userHdl value is passed to the Vtk_CloseLogCallback and Vtk_WriteLogCallback functions.
You must provide all three callback functions to override the default Toolkit logging mechanism.

See Also

Vtk_CloseLogCallback

Vtk_WriteLogCallback

Vtk_LogOptions

Vtk_OpenLog

prevnext


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