redirect stdout to unified logging
More...
#include <dx_log.h>
|
| log (std::ostream &stream, const char *id, const char *category=nullptr) |
|
| log (std::ostream &stream, os_log_type_t type, const char *id, const char *category="") |
|
| ~log () noexcept |
|
|
static constexpr auto | cerr = OS_LOG_TYPE_ERROR |
|
static constexpr auto | clog = OS_LOG_TYPE_INFO |
|
static constexpr auto | cout = OS_LOG_TYPE_DEFAULT |
|
|
std::streambuf::int_type | overflow (std::streambuf::int_type=EOF) override |
|
std::streamsize | xsputn (const char *msg, std::streamsize count) override |
|
redirect stdout to unified logging
https://developer.apple.com/documentation/os/logging/customizing_logging_behavior_while_debugging?language=objc i.e. log show|stream –predicate 'subsystem contains "at.dynax"' log show|stream –predicate 'senderImagePath contains "Test"'
◆ log() [1/2]
dx::redirect::log::log |
( |
std::ostream & | stream, |
|
|
const char * | id, |
|
|
const char * | category = nullptr ) |
|
inline |
◆ log() [2/2]
dx::redirect::log::log |
( |
std::ostream & | stream, |
|
|
os_log_type_t | type, |
|
|
const char * | id, |
|
|
const char * | category = "" ) |
|
inline |
◆ ~log()
dx::redirect::log::~log |
( |
| ) |
|
|
inlinenoexcept |
◆ overflow()
std::streambuf::int_type dx::redirect::log::overflow |
( |
std::streambuf::int_type | = EOF | ) |
|
|
inlineoverrideprotected |
◆ xsputn()
std::streamsize dx::redirect::log::xsputn |
( |
const char * | msg, |
|
|
std::streamsize | count ) |
|
inlineoverrideprotected |
◆ cerr
constexpr auto dx::redirect::log::cerr = OS_LOG_TYPE_ERROR |
|
staticconstexpr |
◆ clog
constexpr auto dx::redirect::log::clog = OS_LOG_TYPE_INFO |
|
staticconstexpr |
◆ cout
constexpr auto dx::redirect::log::cout = OS_LOG_TYPE_DEFAULT |
|
staticconstexpr |
The documentation for this class was generated from the following file: