Electroneum
Loading...
Searching...
No Matches
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:
Collaboration diagram for el::base::LogFormat:

Public Member Functions

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

Protected Member Functions

virtual void updateDateFormat (std::size_t index, base::type::string_t &currFormat) ELPP_FINAL
 Updates date time format if available in currFormat.
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.
void addFlag (base::FormatFlags flag)

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 1598 of file easylogging++.h.

Constructor & Destructor Documentation

◆ LogFormat() [1/4]

el::base::LogFormat::LogFormat ( void )
Here is the caller graph for this function:

◆ LogFormat() [2/4]

el::base::LogFormat::LogFormat ( Level level,
const base::type::string_t & format )
Here is the call graph for this function:

◆ LogFormat() [3/4]

el::base::LogFormat::LogFormat ( const LogFormat & logFormat)
Here is the call graph for this function:

◆ LogFormat() [4/4]

el::base::LogFormat::LogFormat ( LogFormat && logFormat)
Here is the call graph for this function:

◆ ~LogFormat()

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

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

1605{}

Member Function Documentation

◆ addFlag()

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

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

1649 {
1650 base::utils::addFlag(flag, &m_flags);
1651 }

◆ dateTimeFormat()

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

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

1624 {
1625 return m_dateTimeFormat;
1626 }

◆ flags()

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

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

1628 {
1629 return m_flags;
1630 }

◆ format()

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

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

1620 {
1621 return m_format;
1622 }
Here is the caller graph for this function:

◆ hasFlag()

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

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

1632 {
1633 return base::utils::hasFlag(flag, m_flags);
1634 }

◆ level()

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

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

1612 {
1613 return m_level;
1614 }
Here is the caller graph for this function:

◆ log()

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

Implements el::Loggable.

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

1636 {
1637 os << m_format;
1638 }

◆ operator=()

LogFormat & el::base::LogFormat::operator= ( const LogFormat & logFormat)
Here is the call graph for this function:

◆ operator==()

bool el::base::LogFormat::operator== ( const LogFormat & other)
Here is the call graph for this function:

◆ parseFromFormat()

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

Updates format to be used while logging.

Parameters
userFormatUser provided format
Here is the call graph for this function:

◆ updateDateFormat()

virtual 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

◆ updateFormatSpec()

virtual 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.

◆ userFormat()

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

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

1616 {
1617 return m_userFormat;
1618 }
Here is the caller graph for this function:

◆ el::Logger

friend class el::Logger
friend

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


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/easylogging++/easylogging++.h