TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | List of all members
LoggerWin Class Reference

Implementation class for logging with platform specific resources, Windows Event log for example. This class is why we are using managed code. The interface to the event log is MUCH better and easier to use. I am concerned that using manage code will create issues with the COM object. More...

#include <LoggerWin.h>

Inheritance diagram for LoggerWin:
Inheritance graph
Collaboration diagram for LoggerWin:
Collaboration graph

Public Member Functions

 LoggerWin ()
 
virtual ~LoggerWin ()
 
void Write (const std::string &type, const std::string &msg)
 
- Public Member Functions inherited from ILog
virtual ~ILog ()
 

Private Attributes

HANDLE m_hEventLog
 

Detailed Description

Implementation class for logging with platform specific resources, Windows Event log for example. This class is why we are using managed code. The interface to the event log is MUCH better and easier to use. I am concerned that using manage code will create issues with the COM object.

Implementation class for logging with platform specific resources, Windows Event log for example. This class wraps the Event Logging API for XP and eariler OS's http://msdn.microsoft.com/en-us/library/aa363652%28VS.85%29.aspx.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright(c) 2009 Apogee Instruments, Inc.

Constructor & Destructor Documentation

◆ LoggerWin()

LoggerWin::LoggerWin ( )

◆ ~LoggerWin()

LoggerWin::~LoggerWin ( )
virtual

Member Function Documentation

◆ Write()

void LoggerWin::Write ( const std::string &  type,
const std::string &  msg 
)
virtual

Implements ILog.

Member Data Documentation

◆ m_hEventLog

HANDLE LoggerWin::m_hEventLog
private

The documentation for this class was generated from the following files: