Metall  v0.28
A persistent memory allocator for data-centric analytics
metall::logger::level_filter Struct Reference

determines the minimum level of messages that should be loggged More...

#include </home/runner/work/metall/metall/include/metall/logger.hpp>

Public Member Functions

bool should_log (level lvl) const noexcept
 returns true if the logger should log a message of level lvl with this level_filter More...
 

Static Public Attributes

static const level_filter critical {logger::level::critical}
 Only log critical messages. More...
 
static const level_filter error {logger::level::error}
 Only log error and critical messages. More...
 
static const level_filter warning {logger::level::warning}
 Only log warning, error and critical messages. More...
 
static const level_filter info {logger::level::info}
 Only log info, warning, error and critical messages. More...
 
static const level_filter debug {logger::level::debug}
 Only log debug, info, warning, error and critical messages. More...
 
static const level_filter verbose {logger::level::verbose}
 Log all messages. More...
 
static const level_filter silent {std::nullopt}
 Don't log any messages. More...
 

Detailed Description

determines the minimum level of messages that should be loggged

Member Function Documentation

◆ should_log()

bool metall::logger::level_filter::should_log ( level  lvl) const
inlinenoexcept

returns true if the logger should log a message of level lvl with this level_filter

Member Data Documentation

◆ critical

const logger::level_filter metall::logger::level_filter::critical {logger::level::critical}
inlinestatic

Only log critical messages.

◆ error

const logger::level_filter metall::logger::level_filter::error {logger::level::error}
inlinestatic

Only log error and critical messages.

◆ warning

const logger::level_filter metall::logger::level_filter::warning {logger::level::warning}
inlinestatic

Only log warning, error and critical messages.

◆ info

const logger::level_filter metall::logger::level_filter::info {logger::level::info}
inlinestatic

Only log info, warning, error and critical messages.

◆ debug

const logger::level_filter metall::logger::level_filter::debug {logger::level::debug}
inlinestatic

Only log debug, info, warning, error and critical messages.

◆ verbose

const logger::level_filter metall::logger::level_filter::verbose {logger::level::verbose}
inlinestatic

Log all messages.

Examples
logger.cpp.

◆ silent

const logger::level_filter metall::logger::level_filter::silent {std::nullopt}
inlinestatic

Don't log any messages.


The documentation for this struct was generated from the following file: