``log_warn`` Logs message to console, if run through the GUI it logs with **Warning** icon. :param str text: message to print :rtype: None :Example: >>> log_to_stdout(LogLevel.DebugLog) >>> log_warn("Chilidogs!") Chilidogs! >>>
(text: Any, logger: str = "")
| 96 | |
| 97 | |
| 98 | def log_warn(text: Any, logger: str = ""): |
| 99 | """ |
| 100 | ``log_warn`` Logs message to console, if run through the GUI it logs with **Warning** icon. |
| 101 | |
| 102 | :param str text: message to print |
| 103 | :rtype: None |
| 104 | :Example: |
| 105 | |
| 106 | >>> log_to_stdout(LogLevel.DebugLog) |
| 107 | >>> log_warn("Chilidogs!") |
| 108 | Chilidogs! |
| 109 | >>> |
| 110 | """ |
| 111 | if not isinstance(text, str): |
| 112 | text = str(text) |
| 113 | core.BNLogString(0, LogLevel.WarningLog, logger, threading.current_thread().ident, text) |
| 114 | |
| 115 | |
| 116 | def log_error(text: Any, logger: str = ""): |
no outgoing calls
no test coverage detected