MCPcopy
hub / github.com/mvdctop/Movie_Data_Capture / log_console

Method log_console

xlog.py:114–121  ·  view source on GitHub ↗
(self, level, console_color, fmt, *args, **kwargs)

Source from the content-addressed store, hash-verified

112 shutil.move(self.log_filename, self.log_filename + ".1")
113
114 def log_console(self, level, console_color, fmt, *args, **kwargs):
115 try:
116 console_string = '[%s] %s\n' % (level, fmt % args)
117 self.set_console_color(console_color)
118 sys.stderr.write(console_string)
119 self.set_console_color(self.reset_color)
120 except:
121 pass
122
123 def log_to_file(self, level, console_color, fmt, *args, **kwargs):
124 if self.log_fd:

Callers 1

logMethod · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected