Lines Matching refs:logger
36 def CombineLogFiles(list_of_lists, logger): argument
60 logger.warning('splice error - no timestamp in "%s"?', line.strip())
64 logger.info('Unable to splice %s. Incomplete logcat?', cur_file)
99 def GetDeviceLogs(log_filenames, logger): argument
112 logger.debug('%s: %s', device, str(device_files))
117 combined_lines = CombineLogFiles(device_file_lines, logger)
127 def ShutdownLogcatMonitor(base_dir, logger): argument
134 logger.info('Sending SIGTERM to %d', monitor_pid)
142 logger.warning('Monitor (pid %d) terminated uncleanly?', monitor_pid)
144 logger.info('Waiting for logcat process to terminate.')
147 logger.warning('Monitor pid did not terminate. Continuing anyway.')
151 logger.exception('Error signaling logcat monitor - continuing')
164 logger = logging.getLogger('LogcatPrinter')
165 logger.setLevel(LOG_LEVEL)
169 logger.addHandler(sh)
173 logger.warning('Output dir %s doesn\'t exist. Creating it.',
177 logger.info('Dumping logcat to local file %s. If running in a build, '
201 logger.warning('Monitor just started? Sleeping %.1fs', sleep_time)
205 ShutdownLogcatMonitor(base_dir, logger)
207 for log in GetDeviceLogs(FindLogFiles(base_dir), logger):
214 logger.exception('Unexpected exception')
216 logger.info('Done.')