MCPcopy
hub / github.com/cherrypy/cherrypy / log

Method log

cherrypy/process/wspbus.py:582–589  ·  view source on GitHub ↗

Log the given message. Append the last traceback if requested.

(self, msg='', level=20, traceback=False)

Source from the content-addressed store, hash-verified

580 return t
581
582 def log(self, msg='', level=20, traceback=False):
583 """Log the given message.
584
585 Append the last traceback if requested.
586 """
587 if traceback:
588 msg += '\n' + ''.join(_traceback.format_exception(*sys.exc_info()))
589 self.publish('log', msg, level)
590
591
592bus = Bus()

Callers 15

publishMethod · 0.95
startMethod · 0.95
exitMethod · 0.95
gracefulMethod · 0.95
blockMethod · 0.95
_do_execvMethod · 0.95
stopMethod · 0.95
handlerFunction · 0.80
error_logMethod · 0.80
trapMethod · 0.80
closeMethod · 0.80
errorMethod · 0.80

Calls 2

publishMethod · 0.95
joinMethod · 0.80

Tested by 5

unsub_sigFunction · 0.64
old_term_handlerFunction · 0.64
log_test_case_nameFunction · 0.64
test_logFunction · 0.64
append_headersMethod · 0.64