take old code again
This commit is contained in:
parent
aa036a08e3
commit
a6a10d537e
1 changed files with 10 additions and 0 deletions
|
@ -342,6 +342,11 @@ void CServerLogging::AddNewConnection ( const QHostAddress& ClientInetAddr )
|
||||||
const QString strLogStr = CurTimeDatetoLogString() + ", " +
|
const QString strLogStr = CurTimeDatetoLogString() + ", " +
|
||||||
ClientInetAddr.toString() + ", connected";
|
ClientInetAddr.toString() + ", connected";
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
QTextStream tsConsoleStream ( stdout );
|
||||||
|
tsConsoleStream << strLogStr << endl; // on console
|
||||||
|
#endif
|
||||||
|
|
||||||
*this << strLogStr; // in log file
|
*this << strLogStr; // in log file
|
||||||
|
|
||||||
// add element to history
|
// add element to history
|
||||||
|
@ -353,6 +358,11 @@ void CServerLogging::AddServerStopped()
|
||||||
const QString strLogStr = CurTimeDatetoLogString() + ",, server stopped "
|
const QString strLogStr = CurTimeDatetoLogString() + ",, server stopped "
|
||||||
"-------------------------------------";
|
"-------------------------------------";
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
QTextStream tsConsoleStream ( stdout );
|
||||||
|
tsConsoleStream << strLogStr << endl; // on console
|
||||||
|
#endif
|
||||||
|
|
||||||
*this << strLogStr; // in log file
|
*this << strLogStr; // in log file
|
||||||
|
|
||||||
// add element to history and update on server stop
|
// add element to history and update on server stop
|
||||||
|
|
Loading…
Reference in a new issue