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

One log message: logger name (held by reference), level, source file and line, and a pointer to the stream buffer with the text. More...

#include <Logger.hh>

Public Types

typedef Logger::LEVEL level_t
 Alias for Logger::LEVEL.
 

Public Member Functions

 LogRecord (const std::string &logger, const level_t &level, const char *filename, int linenum, std::streambuf *msgbuf)
 Store the given values; nothing is copied (logger is held by reference, msgbuf as a pointer).
 
 ~LogRecord ()
 Destructor; does nothing.
 
const std::string & logger () const
 get logger name
 
const level_t level () const
 get message log level
 
const char * file () const
 get message location
 
int line () const
 Return the source line.
 
std::streambuf * msgbuf () const
 get the stream for the specified log level
 

Detailed Description

One log message: logger name (held by reference), level, source file and line, and a pointer to the stream buffer with the text.

Member Typedef Documentation

◆ level_t

Constructor & Destructor Documentation

◆ LogRecord()

Logger::LogRecord::LogRecord ( const std::string &  logger,
const level_t &  level,
const char *  filename,
int  linenum,
std::streambuf *  msgbuf 
)
inline

Store the given values; nothing is copied (logger is held by reference, msgbuf as a pointer).

◆ ~LogRecord()

Logger::LogRecord::~LogRecord ( )
inline

Destructor; does nothing.

Member Function Documentation

◆ file()

const char * Logger::LogRecord::file ( ) const
inline

get message location

◆ level()

const level_t Logger::LogRecord::level ( ) const
inline

get message log level

◆ line()

int Logger::LogRecord::line ( ) const
inline

Return the source line.

◆ logger()

const std::string & Logger::LogRecord::logger ( ) const
inline

get logger name

◆ msgbuf()

std::streambuf * Logger::LogRecord::msgbuf ( ) const
inline

get the stream for the specified log level


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