log module¶
Class |
Description |
|---|---|
Function |
Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger¶
close_logs¶
is_output_redirected_to_log¶
log¶
- log(level: LogLevel, text: Any, logger: str = '', session: int = 0)[source]¶
logwrites messages to the log console for the given log level.LogLevelName
LogLevel
Description
DebugLog
0
Logs debugging information messages to the console.
InfoLog
1
Logs general information messages to the console.
WarningLog
2
Logs message to console with Warning icon.
ErrorLog
3
Logs message to console with Error icon, focusing the error console.
AlertLog
4
Logs message to pop up window.
log_alert¶
log_alert_for_exception¶
log_alert_with_traceback¶
log_debug¶
log_debug_for_exception¶
log_debug_with_traceback¶
log_error¶
log_error_for_exception¶
log_error_with_traceback¶
log_for_exception¶
- log_for_exception(level: LogLevel, text: Any, logger: str = '', session: int = 0)[source]¶
log_for_exceptionwrites messages to the log console for the given log level, including a stack trace for the current exception.LogLevelName
LogLevel
Description
DebugLog
0
Logs debugging information messages to the console.
InfoLog
1
Logs general information messages to the console.
WarningLog
2
Logs message to console with Warning icon.
ErrorLog
3
Logs message to console with Error icon, focusing the error console.
AlertLog
4
Logs message to pop up window.
log_info¶
log_info_for_exception¶
log_info_with_traceback¶
log_to_file¶
log_to_stderr¶
log_to_stdout¶
- log_to_stdout(min_level: LogLevel = LogLevel.InfoLog)[source]¶
log_to_stdoutredirects minimum log level to standard out.- Parameters:
min_level (LogLevel) – minimum level to log to
- Return type:
None
- Example:
>>> log_debug("Hotdogs!") >>> log_to_stdout(LogLevel.DebugLog) >>> log_debug("Hotdogs!") Hotdogs! >>>
log_warn¶
log_warn_for_exception¶
log_warn_with_traceback¶
log_with_traceback¶
- log_with_traceback(level: LogLevel, text: Any, logger: str = '', session: int = 0)[source]¶
log_with_tracebackwrites messages to the log console for the given log level, including the current stack trace.LogLevelName
LogLevel
Description
DebugLog
0
Logs debugging information messages to the console.
InfoLog
1
Logs general information messages to the console.
WarningLog
2
Logs message to console with Warning icon.
ErrorLog
3
Logs message to console with Error icon, focusing the error console.
AlertLog
4
Logs message to pop up window.