diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2013-01-06 12:20:59 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2013-01-06 12:20:59 +0000 |
commit | d59bd1a4e5cdb03de7ae785411ba2a7f08b72999 (patch) | |
tree | c2dd109b45cd52932a534448bd302af0f2c860d2 /plugins/New_GPG/src/log.cpp | |
parent | 9d2297e9b9797e1d5008af1a405330dadd342567 (diff) |
debuglog refactoring
more debug info in log
git-svn-id: http://svn.miranda-ng.org/main/trunk@2993 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/log.cpp')
-rwxr-xr-x | plugins/New_GPG/src/log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/New_GPG/src/log.cpp b/plugins/New_GPG/src/log.cpp index 7618914f66..273d37060d 100755 --- a/plugins/New_GPG/src/log.cpp +++ b/plugins/New_GPG/src/log.cpp @@ -25,6 +25,7 @@ logtofile& logtofile::operator<<(TCHAR *buf) log_mutex.lock();
log.open(toUTF8(path).c_str(), std::ios::app |std::ios::ate);
log<<toUTF8(buf);
+ log<<"\n";
log.close();
log_mutex.unlock();
}
@@ -38,6 +39,7 @@ logtofile& logtofile::operator<<(char *buf) log_mutex.lock();
log.open(toUTF8(path).c_str(), std::ios::app |std::ios::ate);
log<<buf;
+ log<<"\n";
log.close();
log_mutex.unlock();
}
@@ -52,6 +54,7 @@ logtofile& logtofile::operator<<(string buf) char *tmp = mir_utf8encode(buf.c_str());
log.open(toUTF8(path).c_str(), std::ios::app |std::ios::ate);
log<<tmp;
+ log<<"\n";
log.close();
log_mutex.unlock();
mir_free(tmp);
@@ -66,6 +69,7 @@ logtofile& logtofile::operator<<(wstring buf) log_mutex.lock();
log.open(toUTF8(path).c_str(), std::ios::app |std::ios::ate);
log<<toUTF8(buf);
+ log<<"\n";
log.close();
log_mutex.unlock();
}
|