MCPcopy
hub / github.com/USArmyResearchLab/Dshell / log

Method log

dshell/output/output.py:150–156  ·  view source on GitHub ↗

Write a message to the log Passes all args and kwargs thru to logging, except for 'level'

(self, msg, level=logging.INFO, *args, **kwargs)

Source from the content-addressed store, hash-verified

148 # at the top of each of the modules.
149 # If we want to change the destination of the log messages we can create a log handler.
150 def log(self, msg, level=logging.INFO, *args, **kwargs):
151 """
152 Write a message to the log
153 Passes all args and kwargs thru to logging, except for 'level'
154 """
155 warnings.warn("Please create and use a logger using the logging module instead", DeprecationWarning)
156 logger.log(level, msg, *args, **kwargs)
157
158 def convert(self, *args, **kwargs):
159 """

Callers 1

connection_handlerMethod · 0.45

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected