iox::log
Namespaces
Classes
Types
|
Name |
| enum uint8_t |
LogLevel { kOff = 0, kFatal, kError, kWarn, kInfo, kDebug, kVerbose} |
| enum uint8_t |
LogMode { kRemote = 0x01, kFile = 0x02, kConsole = 0x04} |
| enum uint8_t |
LogLevelOutput { kDisplayLogLevel = 0, kHideLogLevel} |
Functions
Attributes
Types Documentation
enum LogLevel
| Enumerator |
Value |
Description |
| kOff |
0 |
|
| kFatal |
|
|
| kError |
|
|
| kWarn |
|
|
| kInfo |
|
|
| kDebug |
|
|
| kVerbose |
|
|
enum LogMode
| Enumerator |
Value |
Description |
| kRemote |
0x01 |
|
| kFile |
0x02 |
|
| kConsole |
0x04 |
|
enum LogLevelOutput
| Enumerator |
Value |
Description |
| kDisplayLogLevel |
0 |
|
| kHideLogLevel |
|
|
Functions Documentation
function operator|
LogMode operator|(
LogMode lhs,
LogMode rhs
)
function operator|=
LogMode & operator|=(
LogMode & lhs,
LogMode rhs
)
function operator&
LogMode operator&(
LogMode lhs,
LogMode rhs
)
function operator&=
LogMode & operator&=(
LogMode & lhs,
LogMode rhs
)
function createLogger
Logger & createLogger(
const std::string & ctxId,
const std::string & ctxDescription,
const LogLevel appDefLogLevel =LogLevel::kWarn
)
inline constexpr LogHex8 HexFormat(
uint8_t value
)
inline constexpr LogHex8 HexFormat(
int8_t value
)
inline constexpr LogHex16 HexFormat(
uint16_t value
)
inline constexpr LogHex16 HexFormat(
int16_t value
)
inline constexpr LogHex32 HexFormat(
uint32_t value
)
inline constexpr LogHex32 HexFormat(
int32_t value
)
inline constexpr LogHex64 HexFormat(
uint64_t value
)
inline constexpr LogHex64 HexFormat(
int64_t value
)
inline constexpr LogBin8 BinFormat(
uint8_t value
)
inline constexpr LogBin8 BinFormat(
int8_t value
)
inline constexpr LogBin16 BinFormat(
uint16_t value
)
inline constexpr LogBin16 BinFormat(
int16_t value
)
inline constexpr LogBin32 BinFormat(
uint32_t value
)
inline constexpr LogBin32 BinFormat(
int32_t value
)
inline constexpr LogBin64 BinFormat(
uint64_t value
)
inline constexpr LogBin64 BinFormat(
int64_t value
)
function RawBuffer
template <typename T ,
typename std::enable_if<!std::is_pointer< T >::value, std::nullptr_t >::type =nullptr>
inline constexpr LogRawBuffer RawBuffer(
const T & value
)
function operator<<
LogStream & operator<<(
LogStream & out,
LogLevel value
)
Attributes Documentation
variable LogLevelColor
constexpr const char * LogLevelColor = {
"",
"\033[0;1;97;41m",
"\033[0;1;31;103m",
"\033[0;1;93m",
"\033[0;1;92m",
"\033[0;1;96m",
"\033[0;1;36m",
};
variable LogLevelText
constexpr const char * LogLevelText = {
"[ Off ]",
"[ Fatal ]",
"[ Error ]",
"[Warning]",
"[ Info ]",
"[ Debug ]",
"[Verbose]",
};
Updated on 18 December 2023 at 13:02:34 CET