``log_error`` Logs message to console, if run through the GUI it logs with **Error** icon, focusing the error console. :param str text: message to print :rtype: None :Example: >>> log_to_stdout(LogLevel.DebugLog) >>> log_error("Spanferkel!") Spanferkel! >>>
(text: Any, logger: str = "")
| 114 | |
| 115 | |
| 116 | def log_error(text: Any, logger: str = ""): |
| 117 | """ |
| 118 | ``log_error`` Logs message to console, if run through the GUI it logs with **Error** icon, focusing the error console. |
| 119 | |
| 120 | :param str text: message to print |
| 121 | :rtype: None |
| 122 | :Example: |
| 123 | |
| 124 | >>> log_to_stdout(LogLevel.DebugLog) |
| 125 | >>> log_error("Spanferkel!") |
| 126 | Spanferkel! |
| 127 | >>> |
| 128 | """ |
| 129 | if not isinstance(text, str): |
| 130 | text = str(text) |
| 131 | core.BNLogString(0, LogLevel.ErrorLog, logger, threading.current_thread().ident, text) |
| 132 | |
| 133 | |
| 134 | def log_alert(text: Any, logger: str = ""): |
no outgoing calls
no test coverage detected