blob: dde41a8586f3ec410249c7642d0655d77aaae2b7 [file] [log] [blame]
showard136e6dc2009-06-10 19:38:49 +00001import common
2import logging
3from autotest_lib.client.common_lib import logging_config
4
5class BabysitterLoggingConfig(logging_config.LoggingConfig):
Dale Curtis74a314b2011-06-23 14:55:46 -07006 def __init__(self, use_console=True):
7 self.use_console = use_console
8 super(BabysitterLoggingConfig, self).__init__()
9
showard136e6dc2009-06-10 19:38:49 +000010 def configure_logging(self):
Dale Curtis74a314b2011-06-23 14:55:46 -070011 super(BabysitterLoggingConfig, self).configure_logging(
12 use_console=self.use_console)
showard136e6dc2009-06-10 19:38:49 +000013
14 self.add_file_handler(self.get_timestamped_log_name('babysitter'),
15 logging.DEBUG,
16 log_dir=self.get_server_log_dir())