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

Function log_warn

python/log.py:98–113  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

96
97
98def 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
116def log_error(text: Any, logger: str = ""):

Callers 4

get_tag_typeMethod · 0.85
get_string_atMethod · 0.85
rebaseMethod · 0.85
get_bininfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected