Public Member Functions |
| ostream & | debug (bool prefix=true) const |
| | A shorthand way to write out(NS_debug).
|
| ostream & | error (bool prefix=true) const |
| | A shorthand way to write out(NS_error).
|
| ostream & | fatal (bool prefix=true) const |
| | A shorthand way to write out(NS_fatal).
|
|
string | get_basename () const |
| NotifyCategory * | get_child (int i) const |
| | Returns the nth child Category of this particular Category.
|
|
string | get_fullname () const |
| int | get_num_children () const |
| | Returns the number of child Categories of this particular Category.
|
|
NotifySeverity | get_severity () const |
| ostream & | info (bool prefix=true) const |
| | A shorthand way to write out(NS_info).
|
| bool | is_error () const |
| | A shorthand way to write is_on(NS_error).
|
| bool | is_fatal () const |
| | A shorthand way to write is_on(NS_fatal).
|
| bool | is_info () const |
| | A shorthand way to write is_on(NS_info).
|
| bool | is_on (NotifySeverity severity) const |
| | Returns true if messages of the indicated severity level ought to be reported for this Category.
|
| bool | is_warning () const |
| | A shorthand way to write is_on(NS_warning).
|
| ostream & | out (NotifySeverity severity, bool prefix=true) const |
| | Begins a new message to this Category at the indicated severity level.
|
| void | set_severity (NotifySeverity severity) |
| | Sets the severity level of messages that will be reported from this Category.
|
| ostream & | spam (bool prefix=true) const |
| | A shorthand way to write out(NS_spam).
|
| ostream & | warning (bool prefix=true) const |
| | A shorthand way to write out(NS_warning).
|
Static Public Member Functions |
| static bool | is_debug () |
| | When NOTIFY_DEBUG is not defined, the categories are never set to "spam" or "debug" severities, and these methods are redefined to be static to make it more obvious to the compiler.
|
| static bool | is_spam () |
| | When NOTIFY_DEBUG is not defined, the categories are never set to "spam" or "debug" severities, and these methods are redefined to be static to make it more obvious to the compiler.
|
| 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.
|
Friends |
|
class | Notify |
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 36 of file notifyCategory.h.
| ostream & NotifyCategory::out |
( |
NotifySeverity |
severity, |
|
|
bool |
prefix = true |
|
) |
| const |