summaryrefslogtreecommitdiff
path: root/log.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-06 18:42:52 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-06 18:42:52 +0200
commit0ca37041442b35763a3761aad47965a2c119f932 (patch)
tree4db224d161b34e554300d495db9cec77cb9b5cb3 /log.cpp
parent6234ae30aedee812febea6ded7c028448011746a (diff)
merged with miranda_ng main repo
Diffstat (limited to 'log.cpp')
-rwxr-xr-xlog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/log.cpp b/log.cpp
index 7618914..273d370 100755
--- a/log.cpp
+++ b/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();
}