Make scheduler and babysitter use the new logging_manager system.
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3252 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/babysitter_logging_config.py b/scheduler/babysitter_logging_config.py
new file mode 100644
index 0000000..cf2d699
--- /dev/null
+++ b/scheduler/babysitter_logging_config.py
@@ -0,0 +1,11 @@
+import common
+import logging
+from autotest_lib.client.common_lib import logging_config
+
+class BabysitterLoggingConfig(logging_config.LoggingConfig):
+ def configure_logging(self):
+ super(BabysitterLoggingConfig, self).configure_logging(use_console=True)
+
+ self.add_file_handler(self.get_timestamped_log_name('babysitter'),
+ logging.DEBUG,
+ log_dir=self.get_server_log_dir())