Couchbase C++ SDK
1.0.4 (rev. 5355b0f)
Loading...
Searching...
No Matches
logger.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
/*
3
* Copyright 2020-Present Couchbase, Inc.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#pragma once
19
20
#include <string_view>
21
22
namespace
couchbase::logger
23
{
24
enum class
log_level
{
25
trace
,
26
debug
,
27
info
,
28
warn
,
29
error
,
30
critical
,
31
off
,
32
};
33
34
void
35
set_level
(
log_level
level);
36
37
void
38
initialize_console_logger
();
39
40
void
41
initialize_file_logger
(std::string_view filename);
42
43
void
44
initialize_protocol_logger
(std::string_view filename);
45
46
void
47
flush_all_loggers
();
48
49
void
50
shutdown_all_loggers
();
51
}
// namespace couchbase::logger
couchbase::logger
Definition
logger.hxx:23
couchbase::logger::flush_all_loggers
void flush_all_loggers()
couchbase::logger::initialize_file_logger
void initialize_file_logger(std::string_view filename)
couchbase::logger::initialize_console_logger
void initialize_console_logger()
couchbase::logger::initialize_protocol_logger
void initialize_protocol_logger(std::string_view filename)
couchbase::logger::shutdown_all_loggers
void shutdown_all_loggers()
couchbase::logger::log_level
log_level
Definition
logger.hxx:24
couchbase::logger::log_level::trace
@ trace
couchbase::logger::log_level::warn
@ warn
couchbase::logger::log_level::off
@ off
couchbase::logger::log_level::critical
@ critical
couchbase::logger::log_level::debug
@ debug
couchbase::logger::log_level::info
@ info
couchbase::logger::log_level::error
@ error
couchbase::logger::set_level
void set_level(log_level level)
couchbase
logger.hxx
Generated by
1.12.0