iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
logger.hpp File Reference
#include "iox2/legacy/atomic.hpp"
#include <cstdint>
#include <cstring>
#include <mutex>
#include "iox2/legacy/detail/log/building_blocks/logger.inl"

Go to the source code of this file.

Classes

class  iox2::legacy::log::internal::Logger< BaseLogger >
 This class acts as common interface for the Logger. It provides the common functionality and inherits from the BaseLogger which is provided as template parameter. Please have a look at the design document for more details. More...
 

Namespaces

namespace  iox2
 
namespace  iox2::legacy
 
namespace  iox2::legacy::log
 
namespace  iox2::legacy::log::internal
 

Enumerations

enum class  iox2::legacy::log::LogLevel : uint8_t {
  iox2::legacy::log::Off = 0 , iox2::legacy::log::Fatal , iox2::legacy::log::Error , iox2::legacy::log::Warn ,
  iox2::legacy::log::Info , iox2::legacy::log::Debug , iox2::legacy::log::Trace
}
 This enum defines the log levels used for logging. More...
 

Functions

constexpr const chariox2::legacy::log::asStringLiteral (const LogLevel value) noexcept
 converts LogLevel into a string literal
 
template<uint32_t N>
bool iox2::legacy::log::equalStrings (const char *lhs, const char(&rhs)[N]) noexcept
 Compares C-style strings with a char array, i.g. string literal for equality.
 
LogLevel iox2::legacy::log::logLevelFromEnvOr (const LogLevel logLevel) noexcept
 Tries to get the log level from the 'IOX2_LOG_LEVEL' env variable or uses the specified one if the env variable is not set.