#include <state.hh>
Public Member Functions | |
flog_t (const flog_t &)=delete | |
flog_t & | operator= (const flog_t &)=delete |
int | initialize (std::string active="none", int verbose=0, std::size_t one_process=-1) |
void | finalize () |
int | verbose () const |
const std::unordered_map< std::string, size_t > & | tag_map () |
std::stringstream & | buffer_stream () |
std::ostream & | stream () |
std::ostream & | severity_stream (bool active=true) |
std::ostream & | null_stream () |
tee_stream_t & | config_stream () |
size_t | register_tag (const char *tag) |
const size_t & | active_tag () const |
size_t & | active_tag () |
std::string | tag_name (size_t id) |
std::string | active_tag_name () |
bool | tag_enabled () |
size_t | lookup_tag (const char *tag) |
bool | initialized () |
bool | one_process () const |
size_t | output_process () const |
std::size_t | process () |
std::size_t | processes () |
std::thread & | flusher_thread () |
std::mutex & | packets_mutex () |
void | buffer_output () |
std::vector< packet_t > & | packets () |
bool | run_flusher () |
void | end_flusher () |
void | set_serialized () |
bool | serialized () |
Static Public Member Functions | |
static flog_t & | instance () |
The flog_t type provides access to logging parameters and configuration.
This type provides access to the underlying logging parameters for configuration and information. The FleCSI logging functions provide basic logging with an interface that is similar to Google's GLOG and the Boost logging utilities.
|
delete |
Copy constructor (disabled)
|
inline |
Return a reference to the active tag (const version).
|
inline |
Return a reference to the active tag (mutable version).
|
inline |
Return the tag name associated with the active tag.
|
inline |
Return the buffered log stream.
|
inline |
Return the tee stream to allow the user to set configuration options. FIXME: Need a better interface for this...
|
inlinestatic |
Meyer's singleton instance.
|
inline |
Return a null stream to disable output.
|
inline |
Return the next tag id.
|
inline |
Return the log stream predicated on a boolean. This method interface will allow us to select between the actual stream and a null stream.
|
inline |
Return the log stream.
|
inline |
Return the tag map.
|
inline |
Return the tag name associated with a tag id.