tracktable.core.log module¶
Module contents¶
- tracktable.core.log.log_level()[source]¶
Retrieve the global log level
This is a convenience function provided for symmetry with set_log_level. It retrieves the current log level and returns it as an integer. You could just as easily call logging.getLogger().getEffectiveLevel().
- Parameters
arguments. (No) –
- Returns
Current log level as an integer.
- tracktable.core.log.set_log_level(level)[source]¶
Set the global log level for both C++ and Python code
In Release 1.3, Tracktable uses separate loggers for its C++ and Python code. This function will set the log level on both of them at once.
Note
There is not yet a way to redirect log messages generated in C++ to any sink other than standard error. Expect this to be fixed by release 1.4.
- Parameters
level (int) – desired minimum log level. This will usually be one of the constants defined in the logging module: NOTSET, DEBUG, INFO, WARNING, ERROR, or FATAL. ie, set_log_level(logging.DEBUG)
- Returns
No return value.
- tracktable.core.log.warn_deprecated(message)[source]¶
Warn the caller that a function is deprecated
This function prints a message and possibly raises an exception when a deprecated function is called. It must be used in the body of the function itself.
- Parameters
message (str) – What to print on the console
- Returns
No return value.