Design Pattern Examples
Overview of object-oriented design patterns
Bridge_LoggerInterface.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __BRIDGE_LOGGERINTERFACE_H__
8#define __BRIDGE_LOGGERINTERFACE_H__
9
10#include <string>
11
13{
17 struct ILogger
18 {
19 virtual ~ILogger() { }
20
25 virtual void LogTrace(const std::string& msg) = 0;
26
31 virtual void LogInfo(const std::string& msg) = 0;
32
37 virtual void LogError(const std::string& msg) = 0;
38 };
39
40} // end namespace
41
42#endif // __BRIDGE_LOGGERINTERFACE_H__
43
The namespace containing all Design Pattern Examples implemented in C++.
Represents an implementation of a logger object as call from the Logger class.
virtual void LogInfo(const std::string &msg)=0
Log informational messages to the configured output.
virtual void LogTrace(const std::string &msg)=0
Log trace messages to the configured output.
virtual void LogError(const std::string &msg)=0
Log error messages to the configured output.