SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
Light wrapper around a os_log_t value that provides for building log message content via '<<' operators. More...
#include <Logger.hpp>
Public Member Functions | |
operator os_log_t () const | |
Allow Logger instances to appear in os_log API calls. More... | |
std::ostream & | debug () |
std::ostream & | info () |
std::ostream & | error () |
std::ostream & | fault () |
Static Public Member Functions | |
static Logger | Make (const std::string &subsystem, const std::string &category) |
Create a new os_log_t instance. More... | |
Static Public Attributes | |
static const std::string | base {"com.braysoft.SoundFontInfoLib.SF2."} |
Base name to use for all os_log subsystem names. More... | |
Light wrapper around a os_log_t value that provides for building log message content via '<<' operators.
Example: log_.debug() << "the value " << foo << " is invalid" << std::endl;
The buffer continues to accumulate data until the std::endl
manipulator at which point the buffer sends its contents to os_log and resets. Note that the end result is always emitted via a "%{public}s" format so care should be taken to not leak any personal info.
|
inline |
Referenced by SF2::Render::Voice::State::adjustValue(), SF2::IO::File::File(), SF2::Render::Sample::BufferIndex::increment(), SF2::Render::Modulator::Modulator(), and SF2::Render::Voice::State::setValue().
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Create a new os_log_t instance.
subsystem | the subsystem name to use. This will be appended to base . |
category | the category to use |
References base.
|
inline |
Allow Logger instances to appear in os_log API calls.
|
inlinestatic |
Base name to use for all os_log subsystem names.
Referenced by Make().