Design Pattern Examples
Overview of object-oriented design patterns
NullLogger Class Reference

Represents a logger that throws away anything sent its way. More...

#include <Bridge_NullLogger.h>

Collaboration diagram for NullLogger:
Collaboration graph

Static Public Member Functions

static std::unique_ptr< ILoggerCreateLogger ()
 Create an instance of a null logger, a logger that doesn't do anything.
 

Detailed Description

Represents a logger that throws away anything sent its way.

Definition at line 19 of file cplusplus/Bridge_NullLogger.h.

Member Function Documentation

◆ CreateLogger()

std::unique_ptr< ILogger > CreateLogger ( )
static

Create an instance of a null logger, a logger that doesn't do anything.

Returns
An instance of an ILogger object.

Definition at line 44 of file Bridge_NullLogger.cpp.

Referenced by Logger::Logger().


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