1import common 2import logging 3from autotest_lib.client.common_lib import logging_config 4 5class BabysitterLoggingConfig(logging_config.LoggingConfig): 6 def __init__(self, use_console=True): 7 super(BabysitterLoggingConfig, self).__init__(use_console=use_console) 8 9 def configure_logging(self): 10 super(BabysitterLoggingConfig, self).configure_logging( 11 use_console=self.use_console) 12 13 self.add_file_handler(self.get_timestamped_log_name('babysitter'), 14 logging.DEBUG, 15 log_dir=self.get_server_log_dir()) 16