--- 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:]