#include <userver/logging/log_helper.hpp>
Stream-like tskv-formatted log message builder.
Users can add LogHelper& operator<<(LogHelper&, ) overloads to use a faster localeless logging, rather than outputting data through the ostream operator.
Definition at line 70 of file log_helper.hpp.
Public Member Functions | |
LogHelper (LoggerRef logger, Level level, const utils::impl::SourceLocation &location=utils::impl::SourceLocation::Current()) noexcept | |
Constructs LogHelper with span logging. | |
LogHelper (const LoggerPtr &logger, Level level, const utils::impl::SourceLocation &location=utils::impl::SourceLocation::Current()) noexcept | |
Constructs LogHelper with span logging. | |
LogHelper (LogHelper &&)=delete | |
LogHelper (const LogHelper &)=delete | |
LogHelper & | operator= (LogHelper &&)=delete |
LogHelper & | operator= (const LogHelper &)=delete |
LogHelper & | AsLvalue () noexcept |
bool | IsLimitReached () const noexcept |
template<typename T > | |
LogHelper & | operator<< (const T &value) |
LogHelper & | operator<< (char value) noexcept |
LogHelper & | operator<< (std::string_view value) noexcept |
LogHelper & | operator<< (float value) noexcept |
LogHelper & | operator<< (double value) noexcept |
LogHelper & | operator<< (long double value) noexcept |
LogHelper & | operator<< (unsigned long long value) noexcept |
LogHelper & | operator<< (long long value) noexcept |
LogHelper & | operator<< (bool value) noexcept |
LogHelper & | operator<< (const std::exception &value) noexcept |
LogHelper & | operator<< (const LogExtra &extra) noexcept |
Extends internal LogExtra. | |
LogHelper & | operator<< (LogExtra &&extra) noexcept |
Extends internal LogExtra. | |
LogHelper & | operator<< (const LogExtra::Value &value) noexcept |
LogHelper & | operator<< (Hex hex) noexcept |
LogHelper & | operator<< (HexShort hex) noexcept |
LogHelper & | operator<< (Quoted value) noexcept |
|
noexcept |
Constructs LogHelper with span logging.
logger | to log to |
level | message log level |
location | source location that will be written to logs |
|
noexcept |
Constructs LogHelper with span logging.
logger | to log to (logging to nullptr does not output messages) |
level | message log level |
location | source location that will be written to logs |
|
inlinenoexcept |
Definition at line 100 of file log_helper.hpp.
|
inline |
Definition at line 105 of file log_helper.hpp.