Miscellaneous Modules
Last updated
Was this helpful?
Last updated
Was this helpful?
Console logging class with programmable verbosity.
degirum.log.DGLog.print(message)
staticmethod
Print message to log according to current verbosity level.
Parameters:
message
str
Message string to print.
required
degirum.log.DGLog.set_verbose_state(state)
staticmethod
Set log verbosity state.
Parameters:
state
bool
If True
, then log prints messages to console, otherwise no messages printed.
required
Decorator to log function entry and exit.
Parameters:
f
Callable
Function to log.
None
log_level
int
Logging level of the log entries.
DEBUG
Bases: Exception
Base type for all DeGirum exceptions.
Validate if color has acceptable representation.
Parameters:
color
Any
Color object to validate.
required
Raises:
if color is not a three-element tuple and each element is integer number.
Returns:
tuple
color sequence converted to tuple.