mitteLib
Loading...
Searching...
No Matches
log.cpp File Reference
#include <mlab/log.hpp>
#include <mlab/strutils.hpp>
#include <mutex>
#include <unordered_map>
Include dependency graph for log.cpp:

Namespaces

namespace  mlab
 

Functions

std::uint32_t mlab::log_timestamp ()
 
void mlab::log_buffer (const char *format, std::uint32_t timestamp, void const *buffer, std::size_t buffer_length)
 
log_level mlab::get_log_level (std::string_view tag)
 
void mlab::set_log_level (std::string_view tag, log_level level)
 
bool mlab::check_log_level (std::string_view tag, log_level level)
 

Variables

static const auto mlab::_time_at_start = std::chrono::steady_clock::now()
 

Variable Documentation

◆ _default_level

log_level _default_level = log_level::verbose
private

◆ _levels

std::unordered_map<std::string, log_level> _levels
private

◆ _mtx

std::mutex _mtx
private