Panda3D
|
A particular category of error messages. More...
Public Member Functions | |
__init__ (const NotifyCategory) | |
Ostream | debug (bool prefix) |
A shorthand way to write out(NS_debug). More... | |
Ostream | error (bool prefix) |
A shorthand way to write out(NS_error). More... | |
Ostream | fatal (bool prefix) |
A shorthand way to write out(NS_fatal). More... | |
str | getBasename () |
NotifyCategory | getChild (int i) |
Returns the nth child Category of this particular Category. More... | |
list | getChildren () |
str | getFullname () |
int | getNumChildren () |
Returns the number of child Categories of this particular Category. More... | |
NotifySeverity | getSeverity () |
Ostream | info (bool prefix) |
A shorthand way to write out(NS_info). More... | |
bool | isDebug () |
A shorthand way to write is_on(NS_debug). More... | |
bool | isError () |
A shorthand way to write is_on(NS_error). More... | |
bool | isFatal () |
A shorthand way to write is_on(NS_fatal). More... | |
bool | isInfo () |
A shorthand way to write is_on(NS_info). More... | |
bool | isOn (NotifySeverity severity) |
Returns true if messages of the indicated severity level ought to be reported for this Category. More... | |
bool | isSpam () |
bool | isWarning () |
A shorthand way to write is_on(NS_warning). More... | |
Ostream | out (NotifySeverity severity, bool prefix) |
Begins a new message to this Category at the indicated severity level. More... | |
setSeverity (NotifySeverity severity) | |
Sets the severity level of messages that will be reported from this Category. More... | |
Ostream | spam (bool prefix) |
A shorthand way to write out(NS_spam). More... | |
Ostream | warning (bool prefix) |
A shorthand way to write out(NS_warning). More... | |
![]() | |
__init__ () | |
__init__ (const ConfigFlags) | |
Static Public Member Functions | |
static | setServerDelta (long int 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 | |
String | basename |
NotifyCategory | children [] |
Returns the nth child Category of this particular Category. More... | |
String | fullname |
NotifySeverity | severity |
Additional Inherited Members | |
![]() | |
enum | ValueType { VT_undefined = 0, VT_list = 1, VT_string = 2, VT_filename = 3, VT_bool = 4, VT_int = 5, VT_double = 6, VT_enum = 7, VT_search_path = 8, VT_int64 = 9, VT_color = 10 } |
enum | VariableFlags { F_trust_level_mask = 4095, F_open = 4096, F_closed = 8192, F_dynamic = 16384, F_dconfig = 32768 } |
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.
__init__ | ( | const | NotifyCategory | ) |
Ostream debug | ( | bool | prefix | ) |
A shorthand way to write out(NS_debug).
Ostream error | ( | bool | prefix | ) |
A shorthand way to write out(NS_error).
Ostream fatal | ( | bool | prefix | ) |
A shorthand way to write out(NS_fatal).
str getBasename | ( | ) |
NotifyCategory getChild | ( | int | i | ) |
Returns the nth child Category of this particular Category.
list getChildren | ( | ) |
str getFullname | ( | ) |
int getNumChildren | ( | ) |
Returns the number of child Categories of this particular Category.
NotifySeverity getSeverity | ( | ) |
Ostream info | ( | bool | prefix | ) |
A shorthand way to write out(NS_info).
bool isDebug | ( | ) |
A shorthand way to write is_on(NS_debug).
bool isError | ( | ) |
A shorthand way to write is_on(NS_error).
bool isFatal | ( | ) |
A shorthand way to write is_on(NS_fatal).
bool isInfo | ( | ) |
A shorthand way to write is_on(NS_info).
bool isOn | ( | NotifySeverity | severity | ) |
Returns true if messages of the indicated severity level ought to be reported for this Category.
bool isSpam | ( | ) |
bool isWarning | ( | ) |
A shorthand way to write is_on(NS_warning).
Ostream out | ( | NotifySeverity | severity, |
bool | prefix | ||
) |
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().
|
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.
setSeverity | ( | NotifySeverity | severity | ) |
Sets the severity level of messages that will be reported from this Category.
This allows any message of this severity level or higher.
Ostream spam | ( | bool | prefix | ) |
A shorthand way to write out(NS_spam).
Ostream warning | ( | bool | prefix | ) |
A shorthand way to write out(NS_warning).
String basename |
NotifyCategory children[] |
Returns the nth child Category of this particular Category.
String fullname |
NotifySeverity severity |