Functions ¶
configureFromEnvironment(force=False)
→ bool
Configures debug log levels based on the HOUDINI_PDG_*_DEBUG environment variables. If a log level was changed manually using this class, then environment variables are not automatically reloaded unless the force argument is set to True.
Returns True if the log levels were reset to match the environment, else False.
disableAll()
Disables all logging, for all of the pdg.debugLogType entries.
enableAll()
Enables all logging, for all of the pdg.debugLogType entries.
setLogLevel(log_type, log_level)
Sets the log level for specified log type. The log_type should be one of the entries from the pdg.debugLogType enum, and the log_level should be from the matching pdg.debugLevel enum. For example, pdg.debugLogType.Cache and pdg.debugLevelCache.
setVerbosity(verbosity)
Sets the log verbosity level, as an integer value.
logLevel(log_type)
→ log_level
Returns the log level value for the specified pdg.debugLogType. For example, for an input of pdg.debugLogType.Cache this method will return a value from the pdg.debugLevelCache enum.
typeLog(error_level, message, tag)
Writes a type registration log messages. The error_level should be a value from the pdg.debugLevelTypeRegistration enumeration.
writeLog(heading, message)
Writes a generic log message, using the form [timestamp] PDG: (header) message.
verbosity()
→ int
Returns the verbosity of the logging system.