My Project
3.2.0
C++ Distributed Hash Table
Loading...
Searching...
No Matches
include
opendht
log.h
1
/*
2
* Copyright (C) 2014-2023 Savoir-faire Linux Inc.
3
*
4
* Author: Adrien Béraud <adrien.beraud@savoirfairelinux.com>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include "def.h"
23
#include "logger.h"
24
25
#include <iostream>
26
#include <memory>
27
28
namespace
dht
{
29
30
class
DhtRunner;
31
35
namespace
log {
36
37
OPENDHT_PUBLIC
38
std::shared_ptr<Logger> getStdLogger();
39
40
OPENDHT_PUBLIC
41
std::shared_ptr<Logger> getFileLogger(
const
std::string &path);
42
43
OPENDHT_PUBLIC
44
std::shared_ptr<Logger> getSyslogLogger(
const
char
* name);
45
46
OPENDHT_PUBLIC
void
47
enableLogging(
dht::DhtRunner
&
dht
);
48
49
OPENDHT_PUBLIC
void
50
enableFileLogging(
dht::DhtRunner
&
dht
,
const
std::string &path);
51
52
OPENDHT_PUBLIC
void
53
disableLogging(
dht::DhtRunner
&
dht
);
54
55
OPENDHT_PUBLIC
void
56
enableSyslog(
dht::DhtRunner
&
dht
,
const
char
* name);
57
58
}
/* log */
59
}
/* dht */
dht::DhtRunner
Definition
dhtrunner.h:54
dht
Definition
callbacks.h:35
Generated on Sun Oct 6 2024 08:09:55 for My Project by
1.10.0