RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
LogLevel.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <iosfwd>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  RST
 Root namespace of RSTools.
 
namespace  RST::Log
 Thread-safe logging: loggers, sinks, patterns and macros.
 

Enumerations

enum class  RST::Log::LogLevel : std::uint8_t {
  RST::Log::Trace = 0 , RST::Log::Debug , RST::Log::Info , RST::Log::Warn ,
  RST::Log::Error , RST::Log::Fatal , RST::Log::Off
}
 Severity of a message, from Trace to Fatal; Off disables logging. More...
 

Functions

constexpr std::string_view RST::Log::toString (LogLevel level) noexcept
 Level name, such as INFO.
 
constexpr std::string_view RST::Log::toShortString (LogLevel level) noexcept
 Three-letter level name, such as INF.
 
std::ostream & RST::Log::operator<< (std::ostream &out, LogLevel level)
 

Variables

constexpr std::size_t RST::Log::kLogLevelCount = static_cast<std::size_t>(LogLevel::Off) + 1