Agora  1.2.0
Agora project
mongo_sink.h File Reference
#include "spdlog/common.h"
#include "spdlog/details/log_msg.h"
#include "spdlog/sinks/base_sink.h"
#include <spdlog/details/synchronous_factory.h>
#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/types.hpp>
#include <bsoncxx/view_or_value.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>
#include <mongocxx/uri.hpp>
#include "spdlog/details/null_mutex.h"
#include <mutex>
Include dependency graph for mongo_sink.h:

Go to the source code of this file.

Classes

class  spdlog::sinks::mongo_sink< Mutex >
 

Namespaces

 spdlog
 
 spdlog::sinks
 

Typedefs

using spdlog::sinks::mongo_sink_mt = mongo_sink< std::mutex >
 
using spdlog::sinks::mongo_sink_st = mongo_sink< spdlog::details::null_mutex >
 

Functions

template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::mongo_logger_mt (const std::string &logger_name, const std::string &db_name, const std::string &collection_name, const std::string &uri="mongodb://localhost:27017")
 
template<typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > spdlog::mongo_logger_st (const std::string &logger_name, const std::string &db_name, const std::string &collection_name, const std::string &uri="mongodb://localhost:27017")