dxd - dynax driver framework 2.1.0d58
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::redirect::log Class Reference

redirect stdout to unified logging More...

#include <dx_log.h>

+ Inheritance diagram for dx::redirect::log:
+ Collaboration diagram for dx::redirect::log:

Public Member Functions

 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 Public Attributes

static constexpr auto cerr = OS_LOG_TYPE_ERROR
 
static constexpr auto clog = OS_LOG_TYPE_INFO
 
static constexpr auto cout = OS_LOG_TYPE_DEFAULT
 

Protected Member Functions

std::streambuf::int_type overflow (std::streambuf::int_type=EOF) override
 
std::streamsize xsputn (const char *msg, std::streamsize count) override
 

Detailed Description

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"'

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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

Member Data Documentation

◆ 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:

(c) copyright 2009 dynamic acoustics e.U. generated on Sun Apr 14 2024

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.