MCPcopy
hub / github.com/cherrypy/cherrypy / emptyLog

Method emptyLog

cherrypy/test/logtest.py:97–100  ·  view source on GitHub ↗

Overwrite self.logfile with 0 bytes.

(self)

Source from the content-addressed store, hash-verified

95 sys.exit()
96
97 def emptyLog(self):
98 """Overwrite self.logfile with 0 bytes."""
99 with open(self.logfile, 'wb') as f:
100 f.write('')
101
102 def markLog(self, key=None):
103 """Insert a marker line into the log and set self.lastmarker."""

Callers

nothing calls this directly

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected