CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
spdlog::sinks::carta_sink Class Reference

#include <Logger.h>

Inheritance diagram for spdlog::sinks::carta_sink:
[legend]
Collaboration diagram for spdlog::sinks::carta_sink:
[legend]

Public Member Functions

 carta_sink ()
 
void log (const details::log_msg &msg) override
 
void flush () override
 

Private Member Functions

void print_range_ (const memory_buf_t &formatted, size_t start, size_t end)
 
void print_ccode_ (const string_view_t &color_code)
 
std::string to_string_ (const string_view_t &sv)
 

Private Attributes

FILE * target_file_
 
mutex_t & mutex_
 
std::unique_ptr< spdlog::formatter > formatter_
 
std::array< std::string, level::n_levels > colors_
 

Constructor & Destructor Documentation

◆ carta_sink()

spdlog::sinks::carta_sink::carta_sink ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ flush()

void spdlog::sinks::carta_sink::flush ( )
inlineoverride

◆ log()

void spdlog::sinks::carta_sink::log ( const details::log_msg &  msg)
inlineoverride
Here is the call graph for this function:

◆ print_ccode_()

void spdlog::sinks::carta_sink::print_ccode_ ( const string_view_t &  color_code)
inlineprivate
Here is the caller graph for this function:

◆ print_range_()

void spdlog::sinks::carta_sink::print_range_ ( const memory_buf_t &  formatted,
size_t  start,
size_t  end 
)
inlineprivate
Here is the caller graph for this function:

◆ to_string_()

std::string spdlog::sinks::carta_sink::to_string_ ( const string_view_t &  sv)
inlineprivate
Here is the caller graph for this function:

Member Data Documentation

◆ colors_

std::array<std::string, level::n_levels> spdlog::sinks::carta_sink::colors_
private

◆ formatter_

std::unique_ptr<spdlog::formatter> spdlog::sinks::carta_sink::formatter_
private

◆ mutex_

mutex_t& spdlog::sinks::carta_sink::mutex_
private

◆ target_file_

FILE* spdlog::sinks::carta_sink::target_file_
private

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