A particular category of error messages. More...
#include "notifyCategory.h"
Public Member Functions | |
std::ostream & | debug (bool prefix=true) const |
A shorthand way to write out(NS_debug). More... | |
std::ostream & | error (bool prefix=true) const |
A shorthand way to write out(NS_error). More... | |
std::ostream & | fatal (bool prefix=true) const |
A shorthand way to write out(NS_fatal). More... | |
std::string | get_basename () const |
NotifyCategory * | get_child (size_t i) const |
std::string | get_fullname () const |
size_t | get_num_children () const |
NotifySeverity | get_severity () const |
std::ostream & | info (bool prefix=true) const |
A shorthand way to write out(NS_info). More... | |
bool | is_error () const |
A shorthand way to write is_on(NS_error). More... | |
bool | is_fatal () const |
A shorthand way to write is_on(NS_fatal). More... | |
bool | is_info () const |
A shorthand way to write is_on(NS_info). More... | |
bool | is_on (NotifySeverity severity) const |
Returns true if messages of the indicated severity level ought to be reported for this Category. More... | |
bool | is_warning () const |
A shorthand way to write is_on(NS_warning). More... | |
std::ostream & | out (NotifySeverity severity, bool prefix=true) const |
Begins a new message to this Category at the indicated severity level. More... | |
void | set_severity (NotifySeverity severity) |
std::ostream & | spam (bool prefix=true) const |
A shorthand way to write out(NS_spam). More... | |
std::ostream & | warning (bool prefix=true) const |
A shorthand way to write out(NS_warning). More... | |
Static Public Member Functions | |
static constexpr bool | is_debug () |
static constexpr bool | is_spam () |
static void | set_server_delta (long delta) |
Sets a global delta (in seconds) between the local time and the server's time, for the purpose of synchronizing the time stamps in the log messages of the client with that of a known server. More... | |
Public Attributes | |
get_basename | |
get_child | |
Returns the nth child Category of this particular Category. More... | |
get_fullname | |
get_num_children | |
Returns the number of child Categories of this particular Category. More... | |
get_severity | |
set_severity | |
Sets the severity level of messages that will be reported from this Category. More... | |
Friends | |
class | Notify |
Additional Inherited Members | |
Public Types inherited from ConfigFlags | |
enum | ValueType { VT_undefined, VT_list, VT_string, VT_filename, VT_bool, VT_int, VT_double, VT_enum, VT_search_path, VT_int64, VT_color } |
enum | VariableFlags { F_trust_level_mask = 0x00000fff, F_open = 0x00001000, F_closed = 0x00002000, F_dynamic = 0x00004000, F_dconfig = 0x00008000 } |
A particular category of error messages.
Typically there will be one of these per package, so that we can turn on or off error messages at least at a package level; further nested categories can be created within a package if a finer grain of control is required.
Definition at line 32 of file notifyCategory.h.
|
inline |
A shorthand way to write out(NS_debug).
Definition at line 135 of file notifyCategory.I.
References out().
|
inline |
A shorthand way to write out(NS_error).
Definition at line 163 of file notifyCategory.I.
References out().
Referenced by Shader::cp_report_error().
|
inline |
A shorthand way to write out(NS_fatal).
Definition at line 171 of file notifyCategory.I.
References out().
|
inline |
A shorthand way to write out(NS_info).
Definition at line 147 of file notifyCategory.I.
References out().
|
inline |
A shorthand way to write is_on(NS_error).
Definition at line 107 of file notifyCategory.I.
References is_on().
|
inline |
A shorthand way to write is_on(NS_fatal).
Definition at line 115 of file notifyCategory.I.
References is_on().
|
inline |
A shorthand way to write is_on(NS_info).
Definition at line 91 of file notifyCategory.I.
References is_on().
|
inline |
Returns true if messages of the indicated severity level ought to be reported for this Category.
Definition at line 62 of file notifyCategory.I.
Referenced by is_error(), is_fatal(), is_info(), is_warning(), and out().
|
inline |
A shorthand way to write is_on(NS_warning).
Definition at line 99 of file notifyCategory.I.
References is_on().
std::ostream & NotifyCategory::out | ( | NotifySeverity | severity, |
bool | prefix = true |
||
) | const |
Begins a new message to this Category at the indicated severity level.
If the indicated severity level is enabled, this writes a prefixing string to the Notify::out() stream and returns that. If the severity level is disabled, this returns Notify::null().
Definition at line 59 of file notifyCategory.cxx.
References is_on().
Referenced by debug(), error(), fatal(), info(), spam(), and warning().
|
static |
Sets a global delta (in seconds) between the local time and the server's time, for the purpose of synchronizing the time stamps in the log messages of the client with that of a known server.
Definition at line 146 of file notifyCategory.cxx.
|
inline |
A shorthand way to write out(NS_spam).
Definition at line 123 of file notifyCategory.I.
References out().
|
inline |
A shorthand way to write out(NS_warning).
Definition at line 155 of file notifyCategory.I.
References out().
NotifyCategory * NotifyCategory::get_child |
Returns the nth child Category of this particular Category.
Definition at line 76 of file notifyCategory.h.
size_t NotifyCategory::get_num_children |
Returns the number of child Categories of this particular Category.
Definition at line 76 of file notifyCategory.h.
|
inline |
Sets the severity level of messages that will be reported from this Category.
This allows any message of this severity level or higher.
Definition at line 44 of file notifyCategory.h.