Agora  1.2.0
Agora project
spdlog::sinks::wincolor_sink< ConsoleMutex > Class Template Reference

#include <wincolor_sink.h>

Inheritance diagram for spdlog::sinks::wincolor_sink< ConsoleMutex >:
Collaboration diagram for spdlog::sinks::wincolor_sink< ConsoleMutex >:

Public Member Functions

 wincolor_sink (void *out_handle, color_mode mode)
 
 ~wincolor_sink () override
 
 wincolor_sink (const wincolor_sink &other)=delete
 
wincolor_sinkoperator= (const wincolor_sink &other)=delete
 
void set_color (level::level_enum level, std::uint16_t color)
 
void log (const details::log_msg &msg) final override
 
void flush () final override
 
void set_pattern (const std::string &pattern) override final
 
void set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) override final
 
void set_color_mode (color_mode mode)
 
- Public Member Functions inherited from spdlog::sinks::sink
virtual ~sink ()=default
 
void set_level (level::level_enum log_level)
 
level::level_enum level () const
 
bool should_log (level::level_enum msg_level) const
 

Protected Types

using mutex_t = typename ConsoleMutex::mutex_t
 

Protected Member Functions

std::uint16_t set_foreground_color_ (std::uint16_t attribs)
 
void print_range_ (const memory_buf_t &formatted, size_t start, size_t end)
 
void write_to_file_ (const memory_buf_t &formatted)
 
void set_color_mode_impl (color_mode mode)
 

Protected Attributes

void * out_handle_
 
mutex_tmutex_
 
bool should_do_colors_
 
std::unique_ptr< spdlog::formatterformatter_
 
std::array< std::uint16_t, level::n_levelscolors_
 
- Protected Attributes inherited from spdlog::sinks::sink
level_t level_ {level::trace}
 

Member Typedef Documentation

◆ mutex_t

template<typename ConsoleMutex >
using spdlog::sinks::wincolor_sink< ConsoleMutex >::mutex_t = typename ConsoleMutex::mutex_t
protected

Constructor & Destructor Documentation

◆ wincolor_sink() [1/2]

template<typename ConsoleMutex >
SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::wincolor_sink ( void *  out_handle,
color_mode  mode 
)
Here is the call graph for this function:

◆ ~wincolor_sink()

template<typename ConsoleMutex >
SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::~wincolor_sink
override

◆ wincolor_sink() [2/2]

template<typename ConsoleMutex >
spdlog::sinks::wincolor_sink< ConsoleMutex >::wincolor_sink ( const wincolor_sink< ConsoleMutex > &  other)
delete

Member Function Documentation

◆ flush()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::flush
finaloverridevirtual

Implements spdlog::sinks::sink.

◆ log()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::log ( const details::log_msg msg)
finaloverridevirtual

Implements spdlog::sinks::sink.

Here is the call graph for this function:

◆ operator=()

template<typename ConsoleMutex >
wincolor_sink& spdlog::sinks::wincolor_sink< ConsoleMutex >::operator= ( const wincolor_sink< ConsoleMutex > &  other)
delete

◆ print_range_()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::print_range_ ( const memory_buf_t formatted,
size_t  start,
size_t  end 
)
protected
Here is the call graph for this function:

◆ set_color()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_color ( level::level_enum  level,
std::uint16_t  color 
)

◆ set_color_mode()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_color_mode ( color_mode  mode)

◆ set_color_mode_impl()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_color_mode_impl ( color_mode  mode)
protected
Here is the caller graph for this function:

◆ set_foreground_color_()

template<typename ConsoleMutex >
std::uint16_t SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_foreground_color_ ( std::uint16_t  attribs)
protected
Here is the call graph for this function:

◆ set_formatter()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_formatter ( std::unique_ptr< spdlog::formatter sink_formatter)
finaloverridevirtual

Implements spdlog::sinks::sink.

◆ set_pattern()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::set_pattern ( const std::string &  pattern)
finaloverridevirtual

Implements spdlog::sinks::sink.

◆ write_to_file_()

template<typename ConsoleMutex >
void SPDLOG_INLINE spdlog::sinks::wincolor_sink< ConsoleMutex >::write_to_file_ ( const memory_buf_t formatted)
protected
Here is the call graph for this function:

Member Data Documentation

◆ colors_

template<typename ConsoleMutex >
std::array<std::uint16_t, level::n_levels> spdlog::sinks::wincolor_sink< ConsoleMutex >::colors_
protected

◆ formatter_

template<typename ConsoleMutex >
std::unique_ptr<spdlog::formatter> spdlog::sinks::wincolor_sink< ConsoleMutex >::formatter_
protected

◆ mutex_

template<typename ConsoleMutex >
mutex_t& spdlog::sinks::wincolor_sink< ConsoleMutex >::mutex_
protected

◆ out_handle_

template<typename ConsoleMutex >
void* spdlog::sinks::wincolor_sink< ConsoleMutex >::out_handle_
protected

◆ should_do_colors_

template<typename ConsoleMutex >
bool spdlog::sinks::wincolor_sink< ConsoleMutex >::should_do_colors_
protected

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