showard | 136e6dc | 2009-06-10 19:38:49 +0000 | [diff] [blame] | 1 | import common |
| 2 | import logging |
| 3 | from autotest_lib.client.common_lib import logging_config |
| 4 | |
| 5 | class BabysitterLoggingConfig(logging_config.LoggingConfig): |
Dale Curtis | 74a314b | 2011-06-23 14:55:46 -0700 | [diff] [blame^] | 6 | def __init__(self, use_console=True): |
| 7 | self.use_console = use_console |
| 8 | super(BabysitterLoggingConfig, self).__init__() |
| 9 | |
showard | 136e6dc | 2009-06-10 19:38:49 +0000 | [diff] [blame] | 10 | def configure_logging(self): |
Dale Curtis | 74a314b | 2011-06-23 14:55:46 -0700 | [diff] [blame^] | 11 | super(BabysitterLoggingConfig, self).configure_logging( |
| 12 | use_console=self.use_console) |
showard | 136e6dc | 2009-06-10 19:38:49 +0000 | [diff] [blame] | 13 | |
| 14 | self.add_file_handler(self.get_timestamped_log_name('babysitter'), |
| 15 | logging.DEBUG, |
| 16 | log_dir=self.get_server_log_dir()) |