summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-03-10 17:08:06 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-03-10 17:08:06 +0100
commitb798e84abdbdfcf330475da675ad3287a3b79daa (patch)
tree86c59b8f212c4c4d7d85bec84363d8d2ca9567d0 /src/plugins
parent3e5a7859cccf49acbb0bdd3ca841545e5ab0f4c5 (diff)
downloadabrt-b798e84abdbdfcf330475da675ad3287a3b79daa.tar.gz
abrt-b798e84abdbdfcf330475da675ad3287a3b79daa.tar.xz
abrt-b798e84abdbdfcf330475da675ad3287a3b79daa.zip
make report_Logger configurable
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Makefile.am3
-rw-r--r--src/plugins/abrt-action-print.c8
-rw-r--r--src/plugins/ccpp_events.conf1
-rw-r--r--src/plugins/report_Logger.conf1
4 files changed, 5 insertions, 8 deletions
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index 28a5504f..86788e8c 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -42,7 +42,8 @@ eventsdir = $(EVENTS_DIR)
dist_events_DATA = \
report_Bugzilla.xml \
- report_Bugzilla.conf
+ report_Bugzilla.conf \
+ report_Logger.conf
eventsconfdir = $(EVENTS_CONF_DIR)
diff --git a/src/plugins/abrt-action-print.c b/src/plugins/abrt-action-print.c
index cc7fbb34..a5d7219b 100644
--- a/src/plugins/abrt-action-print.c
+++ b/src/plugins/abrt-action-print.c
@@ -56,12 +56,8 @@ int main(int argc, char **argv)
putenv(xasprintf("ABRT_VERBOSE=%u", g_verbose));
//msg_prefix = PROGNAME;
- char *env = getenv("Logger_LogPath");
- VERB3 log("output_file:'%s' Logger_LogPath env:'%s'", output_file, env);
- if (env)
- output_file = env;
-
- env = getenv("Logger_AppendLogs");
+//TODO: convert to an option:
+ char *env = getenv("Logger_AppendLogs");
VERB3 log("Logger_AppendLogs env:'%s'", env);
if (env && string_to_bool(env))
open_mode = "a";
diff --git a/src/plugins/ccpp_events.conf b/src/plugins/ccpp_events.conf
index cbeb8acf..b9f3d9ab 100644
--- a/src/plugins/ccpp_events.conf
+++ b/src/plugins/ccpp_events.conf
@@ -16,4 +16,3 @@ EVENT=reanalyze_Local analyzer=CCpp abrt-action-generate-backtrace
EVENT=reanalyze_RetraceServer analyzer=CCpp abrt-retrace-client batch -k --dir "$DUMP_DIR"
EVENT=report_Bugzilla analyzer=CCpp abrt-action-bugzilla -c /etc/abrt/plugins/Bugzilla.conf
-EVENT=report_Logger analyzer=CCpp abrt-action-print -o /var/log/abrt.log
diff --git a/src/plugins/report_Logger.conf b/src/plugins/report_Logger.conf
new file mode 100644
index 00000000..3d23c739
--- /dev/null
+++ b/src/plugins/report_Logger.conf
@@ -0,0 +1 @@
+Log_File=/var/log/abrt.log