Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
lug::System::Logger::OstreamHandler Class Reference

#include <OstreamHandler.hpp>

Inheritance diagram for lug::System::Logger::OstreamHandler:
[legend]
Collaboration diagram for lug::System::Logger::OstreamHandler:
[legend]

Public Member Functions

 OstreamHandler (const std::string &name, std::ostream &out)
 
 OstreamHandler (const OstreamHandler &)=delete
 
 OstreamHandler (OstreamHandler &&)=delete
 
OstreamHandleroperator= (const OstreamHandler &)=delete
 
OstreamHandleroperator= (OstreamHandler &&)=delete
 
virtual ~OstreamHandler ()=default
 
void handle (const priv::Message &msg) final
 
void flush () final
 
- Public Member Functions inherited from lug::System::Logger::Handler
 Handler (const std::string &name)
 
 Handler (const Handler &)=delete
 
 Handler (Handler &&)=delete
 
Handleroperator= (const Handler &)=delete
 
Handleroperator= (Handler &&)=delete
 
virtual ~Handler ()=default
 
void setFormatter (std::unique_ptr< Formatter > formatter)
 
void setPattern (const std::string &pattern)
 
void format (priv::Message &msg)
 
bool shouldLog (Level level) const
 
void setLevel (Level level)
 
Level getLevel () const
 

Private Attributes

std::ostream & _os
 

Additional Inherited Members

- Protected Attributes inherited from lug::System::Logger::Handler
std::string _name
 
std::unique_ptr< Formatter_formatter
 
Level _level
 

Detailed Description

Definition at line 11 of file OstreamHandler.hpp.

Constructor & Destructor Documentation

◆ OstreamHandler() [1/3]

lug::System::Logger::OstreamHandler::OstreamHandler ( const std::string &  name,
std::ostream &  out 
)

Definition at line 9 of file OstreamHandler.cpp.

◆ OstreamHandler() [2/3]

lug::System::Logger::OstreamHandler::OstreamHandler ( const OstreamHandler )
delete

◆ OstreamHandler() [3/3]

lug::System::Logger::OstreamHandler::OstreamHandler ( OstreamHandler &&  )
delete

◆ ~OstreamHandler()

virtual lug::System::Logger::OstreamHandler::~OstreamHandler ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

OstreamHandler& lug::System::Logger::OstreamHandler::operator= ( const OstreamHandler )
delete

◆ operator=() [2/2]

OstreamHandler& lug::System::Logger::OstreamHandler::operator= ( OstreamHandler &&  )
delete

◆ handle()

void lug::System::Logger::OstreamHandler::handle ( const priv::Message &  msg)
finalvirtual

Implements lug::System::Logger::Handler.

Definition at line 11 of file OstreamHandler.cpp.

◆ flush()

void lug::System::Logger::OstreamHandler::flush ( )
finalvirtual

Implements lug::System::Logger::Handler.

Definition at line 15 of file OstreamHandler.cpp.

Member Data Documentation

◆ _os

std::ostream& lug::System::Logger::OstreamHandler::_os
private

Definition at line 27 of file OstreamHandler.hpp.


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