panda3d.core.NotifyCategory

from panda3d.core import NotifyCategory
class NotifyCategory

Bases: MemoryBase, ConfigFlags

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.

Inheritance diagram

Inheritance diagram of NotifyCategory

__init__(param0: NotifyCategory) → None
getFullname() → str
getBasename() → str
getSeverity() → NotifySeverity
Return type

NotifySeverity

setSeverity(severity: NotifySeverity) → None

Sets the severity level of messages that will be reported from this Category. This allows any message of this severity level or higher.

isOn(severity: NotifySeverity) → bool

Returns true if messages of the indicated severity level ought to be reported for this Category.

isSpam() → bool

When NOTIFY_DEBUG is not defined, the categories will never be set to “spam” or “debug” severities, and these methods are redefined to be static to make it more obvious to the compiler. However, we still want to present a consistent interface to our scripting language, so during the interrogate pass (that is, when CPPPARSER is defined), we still pretend they’re nonstatic.

isDebug() → bool

A shorthand way to write is_on(NS_debug).

isInfo() → bool

A shorthand way to write is_on(NS_info).

isWarning() → bool

A shorthand way to write is_on(NS_warning).

isError() → bool

A shorthand way to write is_on(NS_error).

isFatal() → bool

A shorthand way to write is_on(NS_fatal).

out(severity: NotifySeverity, prefix: bool) → ostream

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().

Return type

ostream

spam(prefix: bool) → ostream

A shorthand way to write out(NS_spam).

Return type

ostream

debug(prefix: bool) → ostream

A shorthand way to write out(NS_debug).

Return type

ostream

info(prefix: bool) → ostream

A shorthand way to write out(NS_info).

Return type

ostream

warning(prefix: bool) → ostream

A shorthand way to write out(NS_warning).

Return type

ostream

error(prefix: bool) → ostream

A shorthand way to write out(NS_error).

Return type

ostream

fatal(prefix: bool) → ostream

A shorthand way to write out(NS_fatal).

Return type

ostream

getNumChildren() → size_t

Returns the number of child Categories of this particular Category.

Return type

size_t

getChild(i: size_t) → NotifyCategory

Returns the nth child Category of this particular Category.

Return type

NotifyCategory

static setServerDelta(delta: int) → None

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.

getChildren() → list
property fullname
Return type

string

property basename
Return type

string

property severity

Getter Setter

Sets the severity level of messages that will be reported from this Category. This allows any message of this severity level or higher.

Return type

NotifySeverity

property children

Returns the nth child Category of this particular Category.

Return type

Sequence[NotifyCategory]