fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::log_stream Class Reference

#include <logger.hpp>

Inheritance diagram for FIX8::log_stream:
FIX8::buffered_ostream

Public Member Functions

 log_stream (decltype(_logger) func, Logger::Level lev=Logger::Info, const char *loc=nullptr, unsigned value=0)
 
 ~log_stream ()
 
- Public Member Functions inherited from FIX8::buffered_ostream
 buffered_ostream ()
 
virtual ~buffered_ostream ()
 

Private Attributes

logger_function _logger
 
const Logger::Level _lev
 
const char * _loc
 
const unsigned _value
 

Additional Inherited Members

- Protected Attributes inherited from FIX8::buffered_ostream
tsbuf _buf
 

Detailed Description

Definition at line 578 of file logger.hpp.

Constructor & Destructor Documentation

FIX8::log_stream::log_stream ( decltype(_logger func,
Logger::Level  lev = Logger::Info,
const char *  loc = nullptr,
unsigned  value = 0 
)
inline

Definition at line 586 of file logger.hpp.

587  : _logger(func), _lev(lev), _loc(loc), _value(value) {}
const Logger::Level _lev
Definition: logger.hpp:581
const unsigned _value
Definition: logger.hpp:583
const char * _loc
Definition: logger.hpp:582
logger_function _logger
Definition: logger.hpp:580
FIX8::log_stream::~log_stream ( )
inline

Definition at line 588 of file logger.hpp.

References FIX8::buffered_ostream::_buf, _lev, _loc, _logger, _value, and FIX8::buffered_ostream::tsbuf::get().

588 { _logger(_buf.get(), _lev, _loc, _value); }
const std::string & get() const
Definition: logger.hpp:565
const Logger::Level _lev
Definition: logger.hpp:581
const unsigned _value
Definition: logger.hpp:583
const char * _loc
Definition: logger.hpp:582
logger_function _logger
Definition: logger.hpp:580

Member Data Documentation

const Logger::Level FIX8::log_stream::_lev
private

Definition at line 581 of file logger.hpp.

Referenced by ~log_stream().

const char* FIX8::log_stream::_loc
private

Definition at line 582 of file logger.hpp.

Referenced by ~log_stream().

logger_function FIX8::log_stream::_logger
private

Definition at line 580 of file logger.hpp.

Referenced by ~log_stream().

const unsigned FIX8::log_stream::_value
private

Definition at line 583 of file logger.hpp.

Referenced by ~log_stream().


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