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

Represents a logger that writes logging to a file. More...

#include <Bridge_FileLogger.h>

Collaboration diagram for FileLogger:
Collaboration graph

Static Public Member Functions

static std::unique_ptr< ILoggerCreateLogger (const std::string &filename)
 Create an instance of a file logger, which writes to a file.
 

Detailed Description

Represents a logger that writes logging to a file.

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

Member Function Documentation

◆ CreateLogger()

std::unique_ptr< ILogger > CreateLogger ( const std::string &  filename)
static

Create an instance of a file logger, which writes to a file.

Create an instance of a console logger, which writes to a file.

Returns
An instance of an ILogger object.

Definition at line 82 of file Bridge_FileLogger.cpp.

Referenced by Logger::Logger().


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