summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tdecore/kdebug.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tdecore/kdebug.cpp b/tdecore/kdebug.cpp
index 73094ecd5..d906f67fc 100644
--- a/tdecore/kdebug.cpp
+++ b/tdecore/kdebug.cpp
@@ -294,13 +294,15 @@ static void kDebugBackend( unsigned short nLevel, unsigned int nArea, const char
const int BUFSIZE = 4096;
char buf[BUFSIZE];
if ( !kDebug_data->aAreaName.isEmpty() ) {
- strlcpy( buf, kDebug_data->aAreaName.data(), BUFSIZE );
- strlcat( buf, ": ", BUFSIZE );
+ strlcpy( buf, TQDateTime::currentDateTime().toString("[yyyy/MM/dd hh:mm:ss.zzz] [").ascii(), BUFSIZE );
+ strlcat( buf, kDebug_data->aAreaName.data(), BUFSIZE );
+ strlcat( buf, "] ", BUFSIZE );
+ strlcat( buf, data, BUFSIZE );
+ }
+ else {
+ strlcpy( buf, TQDateTime::currentDateTime().toString("[yyyy/MM/dd hh:mm:ss.zzz] ").ascii(), BUFSIZE );
strlcat( buf, data, BUFSIZE );
}
- else
- strlcpy( buf, data, BUFSIZE );
-
// Output
switch( nOutput )