My Project
3.7.9
C++ Distributed Hash Table
Toggle main menu visibility
Loading...
Searching...
No Matches
include
opendht
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
11
namespace
dht
{
12
13
class
DhtRunner
;
14
18
namespace
log
{
19
20
OPENDHT_PUBLIC
21
std::shared_ptr<Logger> getStdLogger();
22
23
OPENDHT_PUBLIC
24
std::shared_ptr<Logger> getFileLogger(
const
std::string& path);
25
26
OPENDHT_PUBLIC
27
std::shared_ptr<Logger> getSyslogLogger(
const
char
* name);
28
29
OPENDHT_PUBLIC
void
enableLogging(dht::DhtRunner& dht);
30
31
OPENDHT_PUBLIC
void
enableFileLogging(dht::DhtRunner& dht,
const
std::string& path);
32
33
OPENDHT_PUBLIC
void
disableLogging(dht::DhtRunner& dht);
34
35
OPENDHT_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
Generated on
for My Project by
1.17.0