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

Error-level logger (recoverable errors) More...

#include <log.hpp>

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

Public Member Functions

 error (Location location=Location())
 Constructs an error 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

Error-level logger (recoverable errors)

Outputs to console when logger level is ERROR or higher. Always writes to sink file if configured. Uses stderr.

Definition at line 584 of file log.hpp.

Constructor & Destructor Documentation

◆ error()

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

Constructs an error logger.

Parameters
locationSource location (automatically captured if not specified)

Definition at line 593 of file log.hpp.

Here is the call graph for this function:

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