#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Sat, 01 Oct 2016 15:14:21 +0200
changeset 20491 692f8c7c92f4
parent 20490 f1c27208211f
child 20492 862c7e4b0964
#UI_ENHANCEMENT by cg class: MiniLogger changed: #log:severity:facility:originator:attachment:on:
MiniLogger.st
--- a/MiniLogger.st	Sat Oct 01 15:12:01 2016 +0200
+++ b/MiniLogger.st	Sat Oct 01 15:14:21 2016 +0200
@@ -762,7 +762,8 @@
             messageProperlyEncoded := OperatingSystem encodePath: message.
         ]
     ].
-
+    messageProperlyEncoded := messageProperlyEncoded withoutSeparators.
+    
     "/ hack to allow calls from infPrint/errorPrint.
     "/ if this is an oldStyle infoPrint or errorPrint, do not append another facility and severity
     words := message asCollectionOfWords.
@@ -780,14 +781,17 @@
         ].
     ].
     
-    Timestamp now printOn:aStream format:'%(year)-%(mon)-%(day) %h:%m:%s.%i'.
-    aStream space.
+    "/ Timestamp now printOn:aStream format:'%(year)-%(mon)-%(day) %h:%m:%s.%i'.
+    "/ aStream space.
     aStream
         nextPutAll: facility ? 'STX';
         nextPutAll:' [';
         nextPutAll: severityName;
-        nextPutAll:']:';
-        space.
+        nextPutAll:']'.
+
+    aStream nextPutAll:' ('.
+    Timestamp now printOn:aStream format:'%(year)-%(mon)-%(day) %h:%m:%s.%i'.
+    aStream nextPutAll:'): '.
 
     aStream nextPutAll: messageProperlyEncoded.
     aStream cr.