MCPcopy Create free account
hub / github.com/SpaceNetLab/StarryNet / output

Method output

starrynet/log.py:132–143  ·  view source on GitHub ↗

Log 'msg % args' with severity 'OUTPUT'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.warning("Houston, we have a %s", "cli output", exc_info=1)

(self, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

130
131 # See /usr/lib/python2.5/logging/__init__.py; modified from warning()
132 def output(self, msg, *args, **kwargs):
133 """Log 'msg % args' with severity 'OUTPUT'.
134
135 To pass exception information, use the keyword argument exc_info
136 with a true value, e.g.
137
138 logger.warning("Houston, we have a %s", "cli output", exc_info=1)
139 """
140 if self.manager.disable >= OUTPUT:
141 return
142 if self.isEnabledFor(OUTPUT):
143 self._log(OUTPUT, msg, args, kwargs)
144
145 # pylint: enable=method-hidden
146

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected