bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::log::detail Namespace Reference

Classes

struct  LoggerHandle
class  LogLine
 Collects one message with operator<< and writes it when it is destroyed, at the end of the statement. More...

Functions

LoggerHandle * handle (const std::string &logger)
 The logger with the given name, made the first time. It lives until the program ends.
bool enabled (LoggerHandle *logger, Level level) noexcept
 Whether the logger writes messages of the given level.
void write (LoggerHandle *logger, Level level, std::string_view message) noexcept
 Write a message, without its trailing new lines.

Function Documentation

◆ enabled()

bool bitsim::log::detail::enabled ( LoggerHandle * logger,
Level level )
noexcept

Whether the logger writes messages of the given level.

◆ handle()

LoggerHandle * bitsim::log::detail::handle ( const std::string & logger)

The logger with the given name, made the first time. It lives until the program ends.

◆ write()

void bitsim::log::detail::write ( LoggerHandle * logger,
Level level,
std::string_view message )
noexcept

Write a message, without its trailing new lines.