# ILogPrinter Class Reference

ILogPrinter interface. More...

`#include <ILogPrinter.h>`

Inheritance diagram for ILogPrinter:

List of all members.

## Public Member Functions
virtual void | PrintMessage (const LogInfo &logInfo, const CompositeLoggable &message)=0
| Prints the formatted message on all registered ILogManagers.
virtual void | AddLogManager (ILogManager *logManager)=0
| Adds the ILogManager instance to this ILogPrinter.

## Detailed Description

ILogPrinter interface.

This interface has been created to hide the template parameter T of the GenericLogPrinter from the Logger. New log printers implementations shouldn't implement this interface directly, they should inherit from GenericLogPrinter instead.

Definition at line 31 of file ILogPrinter.h.

## Member Function Documentation

virtual void AddLogManager | ( | ILogManager * | logManager | ) | `[pure virtual]`

Adds the ILogManager instance to this ILogPrinter.

It's not the ILogPrinter, but the Logger that maintains the life cycle of the ILogManager instances. This is because ILogManager instances can be shared between different ILogPrinters.

Implemented in GenericLogPrinter< T >, and GenericLogPrinter< std::tstring >.

Referenced by Logger::ConfigureDefault(), and Logger::ConfigureLogChannel().

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

- ILogPrinter.h