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
28
#include "
iox2/legacy/log/building_blocks/console_logger.hpp
"
29
#include "
iox2/legacy/log/building_blocks/logger.hpp
"
30
31
namespace
iox2
{
32
namespace
legacy {
33
namespace
log
{
34
using
Logger
=
internal::Logger<ConsoleLogger>
;
35
using
TestingLoggerBase
=
internal::Logger<ConsoleLogger>
;
36
42
static
constexpr
bool
IGNORE_ACTIVE_LOG_LEVEL
{
false
};
43
47
static
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
logger.hpp
iox2::legacy::log::internal::Logger
This class acts as common interface for the Logger. It provides the common functionality and inherits...
Definition
logger.hpp:71
console_logger.hpp
iox2::legacy::log::LogLevel
LogLevel
This enum defines the log levels used for logging.
Definition
logger.hpp:30
iox2::legacy::log::LogLevel::Trace
@ Trace
iox2::legacy::log::MINIMAL_LOG_LEVEL
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
iox2::legacy::log::IGNORE_ACTIVE_LOG_LEVEL
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
iox2
Definition
active_request.hpp:26
iox2::log
void log(LogLevel log_level, const char *origin, const char *message)
Adds a log message to the logger.
iox2
legacy
log
logger.hpp
Generated by
1.9.8