Apache Ignite C++ Client
Loading...
Searching...
No Matches
ignite_logger.h
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. 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
22namespace ignite {
23
29class ignite_logger {
30public:
31 // Default
32 ignite_logger() = default;
33 virtual ~ignite_logger() = default;
34
35 // Deleted.
36 ignite_logger(ignite_logger &&) = delete;
37 ignite_logger(const ignite_logger &) = delete;
38 ignite_logger &operator=(ignite_logger &&) = delete;
39 ignite_logger &operator=(const ignite_logger &) = delete;
40
46 virtual void log_error(std::string_view message) = 0;
47
53 virtual void log_warning(std::string_view message) = 0;
54
60 virtual void log_info(std::string_view message) = 0;
61
69 virtual void log_debug(std::string_view message) = 0;
70
75 [[nodiscard]] virtual bool is_debug_enabled() const = 0;
76};
77
78} // namespace ignite
virtual void log_debug(std::string_view message)=0
virtual bool is_debug_enabled() const =0
virtual void log_warning(std::string_view message)=0
virtual void log_error(std::string_view message)=0
virtual void log_info(std::string_view message)=0