pyunity.logger module¶
Utility functions to log output of PyUnity.
This will be imported as pyunity.Logger
.
-
class
pyunity.logger.
Level
(abbr, name)[source]¶ Bases:
object
Represents a level or severity to log. You should never instantiate this directly, instead use one of Logging.OUTPUT, Logging.INFO, Logging.DEBUG, Logging.ERROR or Logging.WARN.
-
pyunity.logger.
LogException
(e)[source]¶ Log an exception.
Parameters: e (Exception) – Exception to log
-
pyunity.logger.
LogLine
(level, *message)[source]¶ Logs a line in latest.log found in these two locations: Windows:
%appdata%\PyUnity\Logs\latest.log
Other:/tmp/pyunity/logs/latest.log
Parameters: level (Level) – Level or severity of log.
-
pyunity.logger.
LogSpecial
(level, type)[source]¶ Log a line of level level with a special line that is generated at runtime.
Parameters: