FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_log::critical Class Reference

Critical-level logger (highest priority, always shown) More...

#include <log.hpp>

Inheritance diagram for ns_log::critical:
[legend]
Collaboration diagram for ns_log::critical:
[legend]

Public Member Functions

 critical (Location location=Location())
 Constructs a critical logger.
 
- Public Member Functions inherited from ns_log::Writer
 Writer (Location const &location, Level const &level, std::string prefix, std::ostream &ostream)
 Constructs a Writer with location and level information.
 
template<ns_concept::StringRepresentable T, typename... Args>
requires ( ( ns_concept::StringRepresentable<Args> or ns_concept::Iterable<Args> ) and ... )
void operator() (T &&format, Args &&... args)
 Writes a formatted log message.
 

Detailed Description

Critical-level logger (highest priority, always shown)

Always outputs to console regardless of logger level. Always writes to sink file if configured. Uses stderr.

Definition at line 605 of file log.hpp.

Constructor & Destructor Documentation

◆ critical()

ns_log::critical::critical ( Location location = Location())
inline

Constructs a critical logger.

Parameters
locationSource location (automatically captured if not specified)

Definition at line 614 of file log.hpp.

Here is the call graph for this function:

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