iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
error_logging.hpp
Go to the documentation of this file.
1
// Copyright (c) 2023 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
14
#ifndef IOX2_BB_REPORTING_ERROR_REPORTING_ERROR_LOGGING_HPP
15
#define IOX2_BB_REPORTING_ERROR_REPORTING_ERROR_LOGGING_HPP
16
17
#include "
iox2/legacy/logging.hpp
"
18
19
// with a log stream interface this could be done with functions, not macros
20
// NOLINTBEGIN(cppcoreguidelines-macro-usage, bugprone-macro-parentheses) macros are required without logstream interface
21
25
#define IOX2_ERROR_INTERNAL_LOG(location, msg_stream) \
26
IOX2_LOG_INTERNAL(location, \
27
iox2::legacy::log::LogLevel::Error, \
28
location.file_name() << ":" << location.line() << " " << msg_stream)
29
33
#define IOX2_ERROR_INTERNAL_LOG_FATAL(location, msg_stream) \
34
IOX2_LOG_INTERNAL(location, \
35
iox2::legacy::log::LogLevel::Fatal, \
36
location.file_name() << ":" << location.line() << " " << msg_stream)
37
41
#define IOX2_ERROR_INTERNAL_LOG_PANIC(location, msg_stream) IOX2_ERROR_INTERNAL_LOG_FATAL(location, msg_stream)
42
43
// NOLINTEND(cppcoreguidelines-macro-usage, bugprone-macro-parentheses)
44
45
#endif
// IOX2_BB_REPORTING_ERROR_REPORTING_ERROR_LOGGING_HPP
logging.hpp
iox2
legacy
error_reporting
error_logging.hpp
Generated by
1.9.8