diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-19 15:23:00 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-19 15:23:00 +0100 |
| commit | 2f907417d37d83cefad7950397bd141c0586b1d5 (patch) | |
| tree | 12d58967607cac7f300e7dcaee456fdfe9bd95a1 /lib/Plugins/Logger.cpp | |
| parent | b472b75f70c7e9144fb29f9d142e9f52f4caab39 (diff) | |
| parent | 0c899d52e5e42caf8c5c394ef6c142c08ac38858 (diff) | |
| download | abrt-2f907417d37d83cefad7950397bd141c0586b1d5.tar.gz abrt-2f907417d37d83cefad7950397bd141c0586b1d5.tar.xz abrt-2f907417d37d83cefad7950397bd141c0586b1d5.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/crash-catcher
Conflicts:
lib/DBus/Makefile.am
lib/DBus/dbus-crash-catcher.conf
lib/DBus/dbus-crashcatcher.conf
src/Daemon/Makefile.am
src/Daemon/dbus-crashcatcher.conf
Diffstat (limited to 'lib/Plugins/Logger.cpp')
| -rw-r--r-- | lib/Plugins/Logger.cpp | 29 |
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"; } } |
