lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Loading...
Searching...
No Matches
lime_log.hpp
Go to the documentation of this file.
1/*
2 lime_log.hpp
3 @author Johan Pascal
4 @copyright Copyright (C) 2018 Belledonne Communications SARL
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 <http://www.gnu.org/licenses/>.
18*/
19#ifndef lime_log_hpp
20#define lime_log_hpp
21
22#include <string>
23
24#define BCTBX_LOG_DOMAIN "lime"
25#include <bctoolbox/logging.h>
26
27#define LIME_LOGD BCTBX_SLOGD
28#define LIME_LOGI BCTBX_SLOGI
29#define LIME_LOGW BCTBX_SLOGW
30#define LIME_LOGE BCTBX_SLOGE
31
32namespace lime {
37 void hexStr(std::ostringstream &os, const uint8_t *data, size_t len, size_t digest=0);
38}
39
40#endif //lime_log_hpp
Definition lime.cpp:33
void hexStr(std::ostringstream &os, const uint8_t *data, size_t len, size_t digest)
Definition lime_log.cpp:30