From 952111451c3fe3651cd3f7efc3f3011c25da73e6 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Tue, 7 Dec 2010 13:46:40 -0800 Subject: [PATCH] logging: Add log_to_file option Signed-off-by: Colin McCabe --- src/config.cc | 1 + src/config.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/config.cc b/src/config.cc index 3506184ae106f..0e9fef11de710 100644 --- a/src/config.cc +++ b/src/config.cc @@ -328,6 +328,7 @@ static struct config_option config_optionsp[] = { OPTION(log_to_stdout, 0, OPT_BOOL, true), OPTION(log_to_syslog, 0, OPT_BOOL, false), OPTION(log_per_instance, 0, OPT_BOOL, false), + OPTION(log_to_file, 0, OPT_BOOL, true), OPTION(clog_to_monitors, 0, OPT_BOOL, true), OPTION(clog_to_syslog, 0, OPT_BOOL, false), OPTION(pid_file, 0, OPT_STR, "/var/run/ceph/$type.$id.pid"), diff --git a/src/config.h b/src/config.h index 6ebcc9e1768d6..a48a1ca61ac11 100644 --- a/src/config.h +++ b/src/config.h @@ -84,6 +84,7 @@ struct md_config_t { bool log_to_stdout; bool log_to_syslog; bool log_per_instance; + bool log_to_file; bool clog_to_monitors; bool clog_to_syslog; -- 2.39.5