iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
logger.hpp
Go to the documentation of this file.
1// Copyright (c) 2022 by Apex.AI Inc. All rights reserved.
2// Copyright (c) 2025 Contributors to the Eclipse Foundation
3//
4// See the NOTICE file(s) distributed with this work for additional
5// information regarding copyright ownership.
6//
7// This program and the accompanying materials are made available under the
8// terms of the Apache Software License 2.0 which is available at
9// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
10// which is available at https://opensource.org/licenses/MIT.
11//
12// SPDX-License-Identifier: Apache-2.0 OR MIT
13
24
25#ifndef IOX2_BB_REPORTING_LOG_LOGGER_HPP
26#define IOX2_BB_REPORTING_LOG_LOGGER_HPP
27
30
31namespace iox2 {
32namespace legacy {
33namespace log {
36
42static constexpr bool IGNORE_ACTIVE_LOG_LEVEL { false };
43
47static constexpr LogLevel MINIMAL_LOG_LEVEL { LogLevel::Trace /* TODO: build::IOX2_MINIMAL_LOG_LEVEL */ };
48
49} // namespace log
50} // namespace legacy
51} // namespace iox2
52
53#endif // IOX2_BB_REPORTING_LOG_LOGGER_HPP
This class acts as common interface for the Logger. It provides the common functionality and inherits...
Definition logger.hpp:71
LogLevel
This enum defines the log levels used for logging.
Definition logger.hpp:30
static constexpr LogLevel MINIMAL_LOG_LEVEL
The minimal log level which will be compiled into the application. All log levels below this will be ...
Definition logger.hpp:47
static constexpr bool IGNORE_ACTIVE_LOG_LEVEL
If set to true, the IOX2_LOG macro will ignore the the configured log level and forward all messages ...
Definition logger.hpp:42
void log(LogLevel log_level, const char *origin, const char *message)
Adds a log message to the logger.