Design Pattern Examples
Overview of object-oriented design patterns
ILogger Struct Reference

#include <Bridge_ILogger.h>

Collaboration diagram for ILogger:
Collaboration graph

Public Attributes

void(* LogTrace )(const char *message, void *data)
 
void(* LogInfo )(const char *message, void *data)
 Log informational messages to the configured output.
 
void(* LogError )(const char *message, void *data)
 Log error messages to the configured output.
 
LoggerTypes loggerType
 The type of this logger, as identified by a value from the LoggerTypes enumeration.
 
void * data
 Data associated with a specific instance of a logger.
 

Detailed Description

Definition at line 33 of file Bridge_ILogger.h.

Member Data Documentation

◆ data

void* data

Data associated with a specific instance of a logger.

Definition at line 61 of file Bridge_ILogger.h.

Referenced by _Bridge_Exercise_Demonstrate_Logging(), CreateConsoleLogger(), CreateFileLogger(), CreateNullLogger(), and DestroyFileLogger().

◆ LogError

void(* LogError) (const char *message, void *data)

Log error messages to the configured output.

Parameters
messageThe message to log.

Definition at line 50 of file Bridge_ILogger.h.

Referenced by _Bridge_Exercise_Demonstrate_Logging(), CreateConsoleLogger(), CreateFileLogger(), and CreateNullLogger().

◆ loggerType

LoggerTypes loggerType

The type of this logger, as identified by a value from the LoggerTypes enumeration.

Definition at line 56 of file Bridge_ILogger.h.

Referenced by CreateLogger(), and DestroyLogger().

◆ LogInfo

void(* LogInfo) (const char *message, void *data)

Log informational messages to the configured output.

Parameters
messageThe message to log.

Definition at line 44 of file Bridge_ILogger.h.

Referenced by _Bridge_Exercise_Demonstrate_Logging(), CreateConsoleLogger(), CreateFileLogger(), and CreateNullLogger().

◆ LogTrace

void(* LogTrace) (const char *message, void *data)

Log trace messages to the configured output.

Parameters
messageThe message to log.

Definition at line 38 of file Bridge_ILogger.h.

Referenced by _Bridge_Exercise_Demonstrate_Logging(), CreateConsoleLogger(), CreateFileLogger(), and CreateNullLogger().


The documentation for this struct was generated from the following file: