A stream pipeline to combine log entities. More...
#include <log_stream.h>
Public Member Functions | |
void | Flush () noexcept |
Clear the stream. | |
template<typename T > | |
LogStream & | operator<< (const Argument< T > &arg) |
Arugment insertion operator. More... | |
LogStream & | operator<< (const LogStream &value) |
LogStream insertion operator. More... | |
LogStream & | operator<< (bool value) |
Boolean insertion operator. More... | |
LogStream & | operator<< (uint8_t value) |
Byte insertion operator. More... | |
LogStream & | operator<< (uint32_t value) |
Unsigned integer insertion operator. More... | |
LogStream & | operator<< (float value) |
Float insertion operator. More... | |
LogStream & | operator<< (const std::string &value) |
String insertion operator. More... | |
LogStream & | operator<< (const char *value) |
C-syle string insertion operator. More... | |
LogStream & | operator<< (LogLevel value) |
LogLeve insertion operator. More... | |
LogStream & | operator<< (const ara::core::ErrorCode &value) |
ErrorCode insertion operator. More... | |
LogStream & | operator<< (const ara::core::InstanceSpecifier &value) noexcept |
InstanceSpecifier insertion operator. More... | |
LogStream & | operator<< (std::vector< std::uint8_t > value) |
Data array insertion operator. More... | |
LogStream & | WithLocation (std::string file, int line) |
Log stream at a certian file and a certian line within the file. More... | |
std::string | ToString () const noexcept |
Convert the current log stream to a standard string. More... | |
A stream pipeline to combine log entities.
LogStream & ara::log::LogStream::operator<< | ( | bool | value | ) |
Boolean insertion operator.
value | A boolean value |
LogStream & ara::log::LogStream::operator<< | ( | const ara::core::ErrorCode & | value | ) |
ErrorCode insertion operator.
value | An error code object |
|
noexcept |
InstanceSpecifier insertion operator.
value | An instance specifier object |
|
inline |
Arugment insertion operator.
T | Argument playload type |
arg | An agrgument |
LogStream & ara::log::LogStream::operator<< | ( | const char * | value | ) |
C-syle string insertion operator.
value | Character array |
LogStream insertion operator.
value | Another logstream |
LogStream & ara::log::LogStream::operator<< | ( | const std::string & | value | ) |
String insertion operator.
value | A string |
LogStream & ara::log::LogStream::operator<< | ( | float | value | ) |
Float insertion operator.
value | A float value |
LogLeve insertion operator.
value | Log severity level |
LogStream & ara::log::LogStream::operator<< | ( | std::vector< std::uint8_t > | value | ) |
Data array insertion operator.
value | Data byte vector |
LogStream & ara::log::LogStream::operator<< | ( | uint32_t | value | ) |
Unsigned integer insertion operator.
value | An unsigned integer value |
LogStream & ara::log::LogStream::operator<< | ( | uint8_t | value | ) |
Byte insertion operator.
value | A byte value |
|
noexcept |
Convert the current log stream to a standard string.
LogStream & ara::log::LogStream::WithLocation | ( | std::string | file, |
int | line | ||
) |
Log stream at a certian file and a certian line within the file.
file | File name |
line | Line number |