#include <ILogPrinter.h>
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. |
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.
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().