#UI_ENHANCEMENT by cg
class: MiniLogger
changed: #log:severity:facility:originator:attachment:on:
--- 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.