Home | History | Annotate | Download | only in cros_utils

Lines Matching refs:def

13 def GetRoot(scr_name):
24 def __init__(self, rootdir, basefilename, print_console, subdir='logs'):
40 def _AddSuffix(self, basename, suffix):
43 def _FindSuffix(self, basename):
64 def _CreateLogFileHandle(self, name):
72 def _CreateLogFileHandles(self, basename):
83 def _CreateLogFileSymlinks(self, basename, suffixed_basename):
94 def _WriteTo(self, fd, msg, flush):
100 def LogStartDots(self, print_to_console=True):
107 def LogAppendDot(self, print_to_console=True):
113 def LogEndDots(self, print_to_console=True):
119 def LogMsg(self, file_fd, term_fd, msg, flush=True):
125 def _GetStdout(self, print_to_console):
130 def _GetStderr(self, print_to_console):
135 def LogCmdToFileOnly(self, cmd, machine='', user=None):
144 def LogCmd(self, cmd, machine='', user=None, print_to_console=True):
153 def LogFatal(self, msg, print_to_console=True):
160 def LogError(self, msg, print_to_console=True):
164 def LogWarning(self, msg, print_to_console=True):
168 def LogOutput(self, msg, print_to_console=True):
172 def LogFatalIf(self, condition, msg):
176 def LogErrorIf(self, condition, msg):
180 def LogWarningIf(self, condition, msg):
184 def LogCommandOutput(self, msg, print_to_console=True):
190 def LogCommandError(self, msg, print_to_console=True):
196 def Flush(self):
207 def __init__(self, *_args, **_kwargs):
212 def _AddSuffix(self, basename, suffix):
215 def _FindSuffix(self, basename):
236 def _CreateLogFileHandle(self, name):
239 def _CreateLogFileHandles(self, basename):
250 def _CreateLogFileSymlinks(self, basename, suffixed_basename):
256 def _WriteTo(self, _fd, msg, _flush):
259 def LogStartDots(self, _print_to_console=True):
262 def LogAppendDot(self, _print_to_console=True):
265 def LogEndDots(self, _print_to_console=True):
268 def LogMsg(self, _file_fd, _term_fd, msg, **_kwargs):
271 def _GetStdout(self, _print_to_console):
274 def _GetStderr(self, _print_to_console):
277 def LogCmdToFileOnly(self, *_args, **_kwargs):
280 # def LogCmdToFileOnly(self, cmd, machine='', user=None):
285 def LogCmd(self, cmd, machine='', user=None, print_to_console=True):
294 def LogFatal(self, msg, print_to_console=True):
300 def LogError(self, msg, print_to_console=True):
303 def LogWarning(self, msg, print_to_console=True):
306 def LogOutput(self, msg, print_to_console=True):
309 def LogFatalIf(self, condition, msg):
313 def LogErrorIf(self, condition, msg):
317 def LogWarningIf(self, condition, msg):
321 def LogCommandOutput(self, msg, print_to_console=True):
327 def LogCommandError(self, msg, print_to_console=True):
333 def Flush(self):
340 def InitLogger(script_name, log_dir, print_console=True, mock=False):
354 def GetLogger(log_dir='', mock=False):
360 def HandleUncaughtExceptions(fun):
363 def _Interceptor(*args, **kwargs):