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

a stream's lines into unified logging, beside its other sinks More...

#include <dx_redirect_log.h>

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

Public Member Functions

 log (std::ostream &ostream, const char *id, const char *category=nullptr)
 log (std::ostream &ostream, os_log_type_t type, const char *id, const char *category="")

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::streamsize xsputn (const char *data, std::streamsize count) override

Detailed Description

a stream's lines into unified logging, beside its other sinks

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 & ostream,
const char * id,
const char * category = nullptr )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ log() [2/2]

dx::redirect::log::log ( std::ostream & ostream,
os_log_type_t type,
const char * id,
const char * category = "" )
inline

Member Function Documentation

◆ xsputn()

std::streamsize dx::redirect::line::xsputn ( const char * data,
std::streamsize count )
inlineoverrideprotectedinherited

Member Data Documentation

◆ cerr

auto dx::redirect::log::cerr = OS_LOG_TYPE_ERROR
staticconstexpr

◆ clog

auto dx::redirect::log::clog = OS_LOG_TYPE_INFO
staticconstexpr

◆ cout

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

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.