OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DataStorageLogger.h
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include <ostream>
4#include <mongocxx/logger.hpp>
5
6namespace DataStorageAPI
7{
8 class DataStorageLogger final : public mongocxx::logger
9 {
10 public:
11 explicit DataStorageLogger(std::ostream* stream): _stream(stream) {}
12
13 void operator()(mongocxx::log_level level,
14 bsoncxx::stdx::string_view domain,
15 bsoncxx::stdx::string_view message) noexcept override;
16
17 private:
18 std::ostream* const _stream;
19 };
20}
21
Definition DataStorageLogger.h:9
void operator()(mongocxx::log_level level, bsoncxx::stdx::string_view domain, bsoncxx::stdx::string_view message) noexcept override
Definition DataStorageLogger.cpp:7
DataStorageLogger(std::ostream *stream)
Definition DataStorageLogger.h:11
Definition ArrayBinaryConverter.h:3