#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Thu, 03 Nov 2016 10:16:11 +0100
changeset 20733 3a3d8e7e94fd
parent 20732 8407d1b888f3
child 20734 52db398ec2e0
#DOCUMENTATION by cg class: MiniLogger comment/format in: #documentation
MiniLogger.st
--- a/MiniLogger.st	Thu Nov 03 10:13:57 2016 +0100
+++ b/MiniLogger.st	Thu Nov 03 10:16:11 2016 +0100
@@ -50,14 +50,14 @@
     A very simple logger for Smalltalk/X. This one is always present.
     It mimics the protocol of the loggers found in stx:goodies/loggia,
     which can be activated by setting the global 'Logger' to an instance of
-    on of them.
+    one of them.
     
     All 
         `Transcript show: 'Processor [info]: xxx' 
     should be rewritten over time to use the Logger.
 
     'Object infoPrint' and 'Object debugPrint' have been changed to
-    forward their message to the global 'Logger' unless nil.
+    forward their message to the global 'Logger' if not nil.
     
     Usage:
         Logger info: 'Hello world'.
@@ -68,7 +68,12 @@
     to disable logging:
         MiniLogger logOnTranscript:false.
         MiniLogger logOnStderr:false.
-        
+
+    for selective logging:
+        Logger loggingThreshold: Logger severityALL.
+        Logger loggingThreshold: Logger severityINFO.
+        Logger loggingThreshold: Logger severityNONE.
+    
     For more examples, see #examples.
 
     [author:]