My Project: /home/noptrix/ba/blackarch/packages/opendht-c/src/opendht/include/opendht/log.h Source File

My Project 3.7.7 C++ Distributed Hash Table

Loading...
Searching...
No Matches
log.h
1// Copyright (c) 2014-2026 Savoir-faire Linux Inc.
2// SPDX-License-Identifier: MIT
3#pragma once
4
5#include "def.h"
6#include "logger.h"
7
8#include <iostream>
9#include <memory>
10
11namespace dht {
12
13class DhtRunner;
14
18namespace log {
19
20OPENDHT_PUBLIC
21std::shared_ptr<Logger> getStdLogger();
22
23OPENDHT_PUBLIC
24std::shared_ptr<Logger> getFileLogger(const std::string& path);
25
26OPENDHT_PUBLIC
27std::shared_ptr<Logger> getSyslogLogger(const char* name);
28
29OPENDHT_PUBLIC void enableLogging(dht::DhtRunner& dht);
30
31OPENDHT_PUBLIC void enableFileLogging(dht::DhtRunner& dht, const std::string& path);
32
33OPENDHT_PUBLIC void disableLogging(dht::DhtRunner& dht);
34
35OPENDHT_PUBLIC void enableSyslog(dht::DhtRunner& dht, const char* name);
36
37} // namespace log
38} // namespace dht
dht::DhtRunner
Definition dhtrunner.h:37
dht::log
Definition http.h:37
dht
Definition callbacks.h:17