Agora  1.2.0
Agora project
hourly_file_sink.h File Reference
#include <spdlog/common.h>
#include <spdlog/details/file_helper.h>
#include <spdlog/details/null_mutex.h>
#include <spdlog/fmt/fmt.h>
#include <spdlog/sinks/base_sink.h>
#include <spdlog/details/os.h>
#include <spdlog/details/circular_q.h>
#include <spdlog/details/synchronous_factory.h>
#include <chrono>
#include <cstdio>
#include <ctime>
#include <mutex>
#include <string>
Include dependency graph for hourly_file_sink.h:

Go to the source code of this file.

Classes

struct  spdlog::sinks::hourly_filename_calculator
 
class  spdlog::sinks::hourly_file_sink< Mutex, FileNameCalc >
 

Namespaces

 spdlog
 
 spdlog::sinks
 

Typedefs

using spdlog::sinks::hourly_file_sink_mt = hourly_file_sink< std::mutex >
 
using spdlog::sinks::hourly_file_sink_st = hourly_file_sink< details::null_mutex >
 

Functions

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::hourly_logger_mt (const std::string &logger_name, const filename_t &filename, bool truncate=false, uint16_t max_files=0, const file_event_handlers &event_handlers={})
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::hourly_logger_st (const std::string &logger_name, const filename_t &filename, bool truncate=false, uint16_t max_files=0, const file_event_handlers &event_handlers={})