CAtlServiceModuleT::LogEvent

Writes to the event log.

void __cdecl LogEvent( 
   LPCTSTR pszFormat, 
   ...  
) throw( );

Parameters

  • pszFormat
    The string to write to the event log.

  • ...
    Optional extra strings to be written to the event log.

Remarks

This method writes details out to an event log, using the function ReportEvent. If no service is running, the string is sent to the console.

Requirements

Header: atlbase.h

See Also

Reference

CAtlServiceModuleT Class