CKato::CommentV (Compact 2013)

3/26/2014

This method adds a string to the current logging level with the specified arguments and verbosity level.

Syntax

BOOL CommentV(
  DWORD dwVerbosity,
  LPCTSTR szFormat,
  va_list pArgs
);

Parameters

  • dwVerbosity
    Verbosity level of this log message. This value can be between 0 and KATO_MAX_VERBOSITY.
  • szFormat
    Address of ANSI or UNICODE format-control string.
  • pArgs
    Pointer to a list of arguments. The number and type of argument parameters depend on the corresponding format-control specifications in the szFormat parameter.

Return Value

Nonzero if successful; otherwise, zero.

Remarks

The verbosity value is not tallied for the given level.

The CKato::Comment and CKato::CommentV methods operate similarly to the CKato::Log and CKato::LogV methods, with the exception that the CKato::Comment and CKato::CommentV methods do not record the verbosity level.

Each logging system on the server side has a verbosity filter that will filter out all logs with verbosity values greater than the current filter value for that system. For this reason, applications should structure their logging so that the most critical logs get the lowest verbosity level.

Requirements

Header

kato.h

Library

kato.lib

See Also

Concepts

CKato (C++)