lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Logger::LogHandler Class Referenceabstract

Abstract handler that writes LogRecords with a LogFormatter it owns (a default one is created on first use if none was set). More...

#include <Logger.hh>

Inherited by Logger::LogHandlerStdStreams.

Public Member Functions

virtual ~LogHandler ()
 Delete the formatter.
 
virtual void setFormatter (LogFormatter *formatter)
 attaches the formatter, will be owned by handler
 
virtual bool log (const LogRecord &record) const =0
 get the stream for the specified log level
 
LogFormatter & formatter () const
 get formatter
 

Protected Member Functions

 LogHandler ()
 

Detailed Description

Abstract handler that writes LogRecords with a LogFormatter it owns (a default one is created on first use if none was set).

Constructor & Destructor Documentation

◆ ~LogHandler()

virtual Logger::LogHandler::~LogHandler ( )
virtual

Delete the formatter.

◆ LogHandler()

Logger::LogHandler::LogHandler ( )
protected

Member Function Documentation

◆ formatter()

LogFormatter & Logger::LogHandler::formatter ( ) const

get formatter

◆ log()

virtual bool Logger::LogHandler::log ( const LogRecord &  record) const
pure virtual

get the stream for the specified log level

Implemented in Logger::LogHandlerStdStreams.

◆ setFormatter()

virtual void Logger::LogHandler::setFormatter ( LogFormatter *  formatter)
virtual

attaches the formatter, will be owned by handler


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