CKato::Comment

This method logs a string to the current logging level with a specified verbosity level. The verbosity value will not be tallied for the given level.

BOOL Comment(
  DWORD dwVerbosity, 
  LPCTSTR szFormat
); 

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.

Return Values

Nonzero if successful; otherwise, zero.

Remarks

One or more optional arguments can also be used in this method. The number and type of argument parameters depends on the corresponding format-control specifications in the szFormat parameter.

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 filters 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

OS Versions: Windows CE 3.0 and later.
Header: Kato.h.
Link Library: Kato.lib.

See Also

Kato Logging Engine | CKato::CommentV

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.