Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | List of all members
dev::LogOutputStream< Id, _AutoSpacing > Class Template Reference

Logging class, iostream-like, that can be shifted to. More...

#include <Log.h>

Inheritance diagram for dev::LogOutputStream< Id, _AutoSpacing >:
[legend]
Collaboration diagram for dev::LogOutputStream< Id, _AutoSpacing >:
[legend]

Public Member Functions

 LogOutputStream ()
 Construct a new object. More...
 
 ~LogOutputStream ()
 Destructor. Posts the accrued log entry to the g_logPost function. More...
 
LogOutputStreamoperator<< (std::string const &_t)
 
LogOutputStreamoperator<< (LogTag _t)
 
template<class T >
LogOutputStreamoperator<< (T const &_t)
 Shift arbitrary data to the log. Spaces will be added between items as required. More...
 

Additional Inherited Members

- Private Member Functions inherited from dev::LogOutputStreamBase
 LogOutputStreamBase (char const *_id, std::type_info const *_info, unsigned _v, bool _autospacing)
 
void comment (std::string const &_t)
 
void append (unsigned long _t)
 
void append (long _t)
 
void append (unsigned int _t)
 
void append (int _t)
 
void append (bigint const &_t)
 
void append (u256 const &_t)
 
void append (u160 const &_t)
 
void append (double _t)
 
template<unsigned N>
void append (FixedHash< N > const &_t)
 
void append (h160 const &_t)
 
void append (h256 const &_t)
 
void append (h512 const &_t)
 
void append (std::string const &_t)
 
void append (bytes const &_t)
 
void append (bytesConstRef _t)
 
template<class T >
void append (std::vector< T > const &_t)
 
template<class T >
void append (std::set< T > const &_t)
 
template<class T , class U >
void append (std::map< T, U > const &_t)
 
template<class T >
void append (std::unordered_set< T > const &_t)
 
template<class T , class U >
void append (std::unordered_map< T, U > const &_t)
 
template<class T , class U >
void append (std::pair< T, U > const &_t)
 
template<class T >
void append (T const &_t)
 
- Private Attributes inherited from dev::LogOutputStreamBase
bool m_autospacing = false
 
unsigned m_verbosity = 0
 
std::stringstream m_sstr
 The accrued log entry. More...
 
LogTag m_logTag = LogTag::None
 

Detailed Description

template<class Id, bool _AutoSpacing = true>
class dev::LogOutputStream< Id, _AutoSpacing >

Logging class, iostream-like, that can be shifted to.

Definition at line 260 of file Log.h.

Constructor & Destructor Documentation

template<class Id , bool _AutoSpacing = true>
dev::LogOutputStream< Id, _AutoSpacing >::LogOutputStream ( )
inline

Construct a new object.

If _term is true the the prefix info is terminated with a ']' character; if not it ends only with a '|' character.

Definition at line 265 of file Log.h.

template<class Id , bool _AutoSpacing = true>
dev::LogOutputStream< Id, _AutoSpacing >::~LogOutputStream ( )
inline

Destructor. Posts the accrued log entry to the g_logPost function.

Definition at line 268 of file Log.h.

Member Function Documentation

template<class Id , bool _AutoSpacing = true>
LogOutputStream& dev::LogOutputStream< Id, _AutoSpacing >::operator<< ( std::string const &  _t)
inline

Definition at line 270 of file Log.h.

template<class Id , bool _AutoSpacing = true>
LogOutputStream& dev::LogOutputStream< Id, _AutoSpacing >::operator<< ( LogTag  _t)
inline

Definition at line 272 of file Log.h.

template<class Id , bool _AutoSpacing = true>
template<class T >
LogOutputStream& dev::LogOutputStream< Id, _AutoSpacing >::operator<< ( T const &  _t)
inline

Shift arbitrary data to the log. Spaces will be added between items as required.

Definition at line 275 of file Log.h.


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