Photon 1.0.0
Loading...
Searching...
No Matches
callback_sink.h File Reference
#include <spdlog/details/null_mutex.h>
#include <spdlog/sinks/base_sink.h>
#include <spdlog/details/synchronous_factory.h>
#include <mutex>
#include <string>

Go to the source code of this file.

Classes

class  spdlog::sinks::callback_sink< Mutex >
 

Namespaces

namespace  spdlog
 
namespace  spdlog::sinks
 

Typedefs

typedef std::function< void(const details::log_msg &msg)> spdlog::custom_log_callback
 
using spdlog::sinks::callback_sink_mt = callback_sink< std::mutex >
 
using spdlog::sinks::callback_sink_st = callback_sink< details::null_mutex >
 

Functions

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerspdlog::callback_logger_mt (const std::string &logger_name, const custom_log_callback &callback)
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< loggerspdlog::callback_logger_st (const std::string &logger_name, const custom_log_callback &callback)