diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-06 18:42:52 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-06 18:42:52 +0200 |
commit | 0ca37041442b35763a3761aad47965a2c119f932 (patch) | |
tree | 4db224d161b34e554300d495db9cec77cb9b5cb3 /log.cpp | |
parent | 6234ae30aedee812febea6ded7c028448011746a (diff) |
merged with miranda_ng main repo
Diffstat (limited to 'log.cpp')
-rwxr-xr-x | log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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();
}
|