MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / log

Method log

dshell/core.py:188–198  ·  view source on GitHub ↗

Logs msg argument at specified level (default of INFO is for -v/--verbose output) Arguments: msg: text string to log level: logging level (default: logging.INFO)

(self, msg, level=logging.INFO)

Source from the content-addressed store, hash-verified

186 self.out.write(*args, **kwargs)
187
188 def log(self, msg, level=logging.INFO):
189 """
190 Logs msg argument at specified level
191 (default of INFO is for -v/--verbose output)
192
193 Arguments:
194 msg: text string to log
195 level: logging level (default: logging.INFO)
196 """
197 warnings.warn("log() function is deprecated. Please use logging library instead.", DeprecationWarning)
198 logger.log(level, msg)
199
200 def debug(self, msg):
201 """

Callers

nothing calls this directly

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected