Rosetta
|
#include <MemTracer.hh>
Public Member Functions | |
MemTracerImpl (TracerPriority priority=t_info, bool muted_by_default=true) | |
![]() | |
TracerImpl (std::string const &channel="", TracerPriority priority=t_info, bool muted_by_default=false) | |
Create Tracer object with given channel and priority. More... | |
TracerImpl (std::string const &channel, utility::CSI_Sequence const &channel_color, utility::CSI_Sequence const &channel_name_color=utility::CSI_Nothing(), TracerPriority priority=t_info, bool muted_by_default=false) | |
Create Tracer object with channel color, channel name color and given channel and priority. More... | |
~TracerImpl () override | |
void | init (TracerImpl const &tr) |
re-init using data from another tracer object. More... | |
void | flush_all_channels () |
flush tracer buffer and flush buffers of all sub-channels ie: Fatal, Error, Warning, Info, Debug, Trace More... | |
bool | visible () |
Is this tracer currently visible?. More... | |
bool | visible (int priority) |
is this tracer visible, if it used the given priority value? More... | |
int | priority () const |
get/set tracer priority level. More... | |
TracerImpl & | operator() (int priority) |
void | priority (int priority) |
std::string const & | channel () const |
utility::CSI_Sequence const & | channel_color () |
Get the channel color. More... | |
void | channel_color (utility::CSI_Sequence const &color) |
Set the channel color. More... | |
utility::CSI_Sequence const & | channel_name_color () |
void | channel_name_color (utility::CSI_Sequence const &color) |
void | set_local_print_channel_name (bool const setting) |
Set whether we're printing the channel name. More... | |
bool | get_local_print_channel_name () const |
Get whether we're printing the channel name. More... | |
TracerProxyImpl & | get_proxy_by_priority (TracerPriority priority) |
![]() | |
basic_otstream () | |
~basic_otstream () override | |
bool | is_flushed () const |
Return true if inner string buffer is empty. More... | |
Protected Member Functions | |
void | t_flush (std::string const &) override |
overload member function. More... | |
![]() | |
void | t_flush (std::string const &) override |
overload member function. More... | |
Private Types | |
typedef TracerImpl | Parent |
Additional Inherited Members | |
![]() | |
typedef std::ostream * | OstreamPointer |
![]() | |
static void | set_new_final_stream (std::ostream *new_final_stream) |
set ios hook for final tracer stream (deafult is std::cout). More... | |
static void | set_default_final_stream () |
static void | set_ios_hook (otstreamOP tr, std::string const &monitoring_channels_list, bool raw=false) |
set ios hook for all tracer io operation. More... | |
static std::string const & | get_all_channels_string () |
static void | set_tracer_options (TracerOptions const &to) |
set tracer options - global options for Tracer IO. More... | |
static bool | super_mute () |
global super mute flag that allow to mute all io no matter what. More... | |
static void | super_mute (bool f) |
static void | output_prefix (std::string const &) |
set/get globale string-prefix for all Tracer output strings More... | |
static std::string | output_prefix () |
![]() | |
TracerProxyImpl | Fatal |
channels with predefined priority levels. More... | |
TracerProxyImpl | Error |
TracerProxyImpl | Warning |
TracerProxyImpl | Info |
TracerProxyImpl | Debug |
TracerProxyImpl | Trace |
![]() | |
static utility::CSI_Sequence | Reset |
static utility::CSI_Sequence | Bold |
static utility::CSI_Sequence | Underline |
static utility::CSI_Sequence | Black |
static utility::CSI_Sequence | Red |
static utility::CSI_Sequence | Green |
static utility::CSI_Sequence | Yellow |
static utility::CSI_Sequence | Blue |
static utility::CSI_Sequence | Magenta |
static utility::CSI_Sequence | Cyan |
static utility::CSI_Sequence | White |
static utility::CSI_Sequence | bgBlack |
static utility::CSI_Sequence | bgRed |
static utility::CSI_Sequence | bgGreen |
static utility::CSI_Sequence | bgYellow |
static utility::CSI_Sequence | bgBlue |
static utility::CSI_Sequence | bgMagenta |
static utility::CSI_Sequence | bgCyan |
static utility::CSI_Sequence | bgWhite |
|
private |
|
inline |
|
overrideprotectedvirtual |
overload member function.
Reimplemented from basic::basic_otstream< CharT, Traits >.
References basic::get_usage_from_procfilesystem(), str(), basic::TracerImpl::t_flush(), and basic::TracerImpl::visible().