summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Logger.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-18 17:22:30 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-18 17:22:30 +0100
commite43c8c787e7b3eb189e3dab8f8ca11958b23e054 (patch)
treea11da060839ca042c3c6892640516758ef52f82c /lib/Plugins/Logger.cpp
parent77ef93c89e3fa75d1a5c0f126bcbb001a152bacf (diff)
downloadabrt-e43c8c787e7b3eb189e3dab8f8ca11958b23e054.tar.gz
abrt-e43c8c787e7b3eb189e3dab8f8ca11958b23e054.tar.xz
abrt-e43c8c787e7b3eb189e3dab8f8ca11958b23e054.zip
changed configuration
Diffstat (limited to 'lib/Plugins/Logger.cpp')
-rw-r--r--lib/Plugins/Logger.cpp29
1 files changed, 25 insertions, 4 deletions
diff --git a/lib/Plugins/Logger.cpp b/lib/Plugins/Logger.cpp
index 0af8f07..68734df 100644
--- a/lib/Plugins/Logger.cpp
+++ b/lib/Plugins/Logger.cpp
@@ -1,3 +1,24 @@
+/*
+ Logger.cpp - it simple writes report to specific file
+
+ Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
+ Copyright (C) 2009 RedHat inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#include "Logger.h"
#include <fstream>
@@ -8,13 +29,13 @@ CLogger::CLogger() :
void CLogger::SetSettings(const map_settings_t& pSettings)
{
- if (pSettings.find("Log_Path")!= pSettings.end())
+ if (pSettings.find("LogPath")!= pSettings.end())
{
- m_sLogPath = pSettings.find("Log_Path")->second;
+ m_sLogPath = pSettings.find("LogPath")->second;
}
- if (pSettings.find("Append_Logs")!= pSettings.end())
+ if (pSettings.find("AppendLogs")!= pSettings.end())
{
- m_bAppendLogs = pSettings.find("Append_Logs")->second == "yes";
+ m_bAppendLogs = pSettings.find("AppendLogs")->second == "yes";
}
}