MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / log_error

Function log_error

python/log.py:116–131  ·  view source on GitHub ↗

``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 = "")

Source from the content-addressed store, hash-verified

114
115
116def 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
134def log_alert(text: Any, logger: str = ""):

Callers 15

initMethod · 0.90
init_arm9Method · 0.90
init_arm7Method · 0.90
write_breakpointFunction · 0.90
initMethod · 0.90
initMethod · 0.90
_get_type_tokensMethod · 0.85
_get_type_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected