Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
el::base::LogFormat Class Reference

Represents log format containing flags and date format. This is used internally to start initial log. More...

#include <easylogging++.h>

Inheritance diagram for el::base::LogFormat:
Inheritance graph
[legend]

Public Member Functions

const std::stringdateTimeFormat (void) const
 
base::type::EnumType flags (void) const
 
const base::type::string_tformat (void) const
 
bool hasFlag (base::FormatFlags flag) const
 
Level level (void) const
 
virtual void log (el::base::type::ostream_t &os) const
 
 LogFormat (void)
 
 LogFormat (Level level, const base::type::string_t &format)
 
 LogFormat (const LogFormat &logFormat)
 
 LogFormat (LogFormat &&logFormat)
 
LogFormatoperator= (const LogFormat &logFormat)
 
bool operator== (const LogFormat &other)
 
void parseFromFormat (const base::type::string_t &userFormat)
 Updates format to be used while logging. More...
 
const base::type::string_tuserFormat (void) const
 
virtual ~LogFormat (void)
 
- Public Member Functions inherited from el::Loggable
virtual ~Loggable (void)
 

Protected Member Functions

void addFlag (base::FormatFlags flag)
 
virtual void updateDateFormat (std::size_t index, base::type::string_t &currFormat) ELPP_FINAL
 Updates date time format if available in currFormat. More...
 
virtual void updateFormatSpec (void) ELPP_FINAL
 Updates level from format. This is so that we dont have to do it at log-writing-time. It uses m_format and m_level. More...
 

Private Attributes

std::string m_currentHost
 
std::string m_currentUser
 
std::string m_dateTimeFormat
 
base::type::EnumType m_flags
 
base::type::string_t m_format
 
Level m_level
 
base::type::string_t m_userFormat
 

Friends

class el::Logger
 

Detailed Description

Represents log format containing flags and date format. This is used internally to start initial log.

Definition at line 1568 of file easylogging++.h.

Constructor & Destructor Documentation

el::base::LogFormat::LogFormat ( void  )

Definition at line 1451 of file easylogging++.cc.

el::base::LogFormat::LogFormat ( Level  level,
const base::type::string_t format 
)

Definition at line 1461 of file easylogging++.cc.

el::base::LogFormat::LogFormat ( const LogFormat logFormat)

Definition at line 1467 of file easylogging++.cc.

el::base::LogFormat::LogFormat ( LogFormat &&  logFormat)

Definition at line 1477 of file easylogging++.cc.

virtual el::base::LogFormat::~LogFormat ( void  )
inlinevirtual

Definition at line 1575 of file easylogging++.h.

Member Function Documentation

void el::base::LogFormat::addFlag ( base::FormatFlags  flag)
inlineprotected

Definition at line 1619 of file easylogging++.h.

const std::string& el::base::LogFormat::dateTimeFormat ( void  ) const
inline

Definition at line 1594 of file easylogging++.h.

base::type::EnumType el::base::LogFormat::flags ( void  ) const
inline

Definition at line 1598 of file easylogging++.h.

const base::type::string_t& el::base::LogFormat::format ( void  ) const
inline

Definition at line 1590 of file easylogging++.h.

bool el::base::LogFormat::hasFlag ( base::FormatFlags  flag) const
inline

Definition at line 1602 of file easylogging++.h.

Level el::base::LogFormat::level ( void  ) const
inline

Definition at line 1582 of file easylogging++.h.

virtual void el::base::LogFormat::log ( el::base::type::ostream_t os) const
inlinevirtual

Implements el::Loggable.

Definition at line 1606 of file easylogging++.h.

LogFormat & el::base::LogFormat::operator= ( const LogFormat logFormat)

Definition at line 1487 of file easylogging++.cc.

bool el::base::LogFormat::operator== ( const LogFormat other)

Definition at line 1499 of file easylogging++.cc.

void el::base::LogFormat::parseFromFormat ( const base::type::string_t userFormat)

Updates format to be used while logging.

Parameters
userFormatUser provided format

Definition at line 1506 of file easylogging++.cc.

void el::base::LogFormat::updateDateFormat ( std::size_t  index,
base::type::string_t currFormat 
)
protectedvirtual

Updates date time format if available in currFormat.

Parameters
indexIndex where datetime, date or time was found
[in,out]currFormatcurrent format that is being used to format

Definition at line 1556 of file easylogging++.cc.

void el::base::LogFormat::updateFormatSpec ( void  )
protectedvirtual

Updates level from format. This is so that we dont have to do it at log-writing-time. It uses m_format and m_level.

Definition at line 1583 of file easylogging++.cc.

const base::type::string_t& el::base::LogFormat::userFormat ( void  ) const
inline

Definition at line 1586 of file easylogging++.h.

Friends And Related Function Documentation

friend class el::Logger
friend

Definition at line 1631 of file easylogging++.h.

Member Data Documentation

std::string el::base::LogFormat::m_currentHost
private

Definition at line 1630 of file easylogging++.h.

std::string el::base::LogFormat::m_currentUser
private

Definition at line 1629 of file easylogging++.h.

std::string el::base::LogFormat::m_dateTimeFormat
private

Definition at line 1627 of file easylogging++.h.

base::type::EnumType el::base::LogFormat::m_flags
private

Definition at line 1628 of file easylogging++.h.

base::type::string_t el::base::LogFormat::m_format
private

Definition at line 1626 of file easylogging++.h.

Level el::base::LogFormat::m_level
private

Definition at line 1624 of file easylogging++.h.

base::type::string_t el::base::LogFormat::m_userFormat
private

Definition at line 1625 of file easylogging++.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36