#DOCUMENTATION by cg
class: MiniLogger class
comment/format in:32 methods
category of: #log:severity:facility:originator:attachment:
--- a/MiniLogger.st Thu May 23 11:47:43 2019 +0200
+++ b/MiniLogger.st Fri May 24 00:39:11 2019 +0200
@@ -541,51 +541,95 @@
!MiniLogger class methodsFor:'logging'!
-log: message
- self log:message severity:DEBUG originator:(thisContext sender receiver).
+log:message
+ self
+ log:message
+ severity:DEBUG
+ originator:(thisContext sender receiver).
"Created: / 15-09-2011 / 10:27:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 02-12-2014 / 10:52:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified (format): / 01-03-2017 / 10:27:52 / cg"
+ "Modified (format): / 24-05-2019 / 00:38:21 / Claus Gittinger"
!
-log: message facility: facility
- self log: message severity: DEBUG facility: facility originator: thisContext sender receiver
+log:message facility:facility
+ self
+ log:message
+ severity:DEBUG
+ facility:facility
+ originator:(thisContext sender receiver)
"Created: / 14-09-2011 / 21:22:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 02-12-2014 / 10:53:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified (format): / 24-05-2019 / 00:25:42 / Claus Gittinger"
!
-log: message severity: severity
- self log: message severity: severity originator: thisContext sender receiver
+log:message severity:severity
+ self
+ log:message
+ severity:severity
+ originator:(thisContext sender receiver)
"Created: / 15-09-2011 / 10:25:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 02-12-2014 / 10:53:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified (format): / 24-05-2019 / 00:25:31 / Claus Gittinger"
!
-log: message severity: severity attachment: attachment
- | originator |
+log:message severity:severity attachment:attachment
+ |originator|
originator := thisContext sender receiver.
- self log: message severity: severity facility: (self facilityOf: originator) originator: originator attachment: attachment
+ self
+ log:message
+ severity:severity
+ facility:(self facilityOf:originator)
+ originator:originator
+ attachment:attachment
"Created: / 15-09-2011 / 11:47:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 15-03-2013 / 11:20:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified (format): / 26-08-2014 / 08:23:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified (format): / 24-05-2019 / 00:25:20 / Claus Gittinger"
!
-log: message severity: severity facility: facility
- self log: message severity: severity facility: facility originator: thisContext sender receiver
+log:message severity:severity facility:facility
+ self
+ log:message
+ severity:severity
+ facility:facility
+ originator:thisContext sender receiver
"Created: / 14-09-2011 / 21:20:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified (format): / 24-05-2019 / 00:25:18 / Claus Gittinger"
!
-log: message severity: severity facility: facility originator: originator
- self log: message severity: severity facility: facility originator: originator attachment: nil
+log:message severity:severity facility:facility originator:originator
+ self
+ log:message
+ severity:severity
+ facility:facility
+ originator:originator
+ attachment:nil
"Created: / 14-09-2011 / 21:20:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified (format): / 24-05-2019 / 00:25:09 / Claus Gittinger"
!
+log:message severity:severity originator:originator
+ self
+ log:message
+ severity:severity
+ facility:(self facilityOf:originator)
+ originator:originator
+
+ "Created: / 15-09-2011 / 10:26:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 15-03-2013 / 11:20:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified (format): / 24-05-2019 / 00:25:14 / Claus Gittinger"
+! !
+
+!MiniLogger class methodsFor:'logging - basic'!
+
log:message severity:severity facility:facilityArg originator:originator attachment:attachment
"Pricipal logging method. This mimics VM __stxLog__()"
@@ -711,225 +755,301 @@
"Modified: / 10-07-2018 / 00:16:35 / Claus Gittinger"
"Modified (format): / 06-02-2019 / 18:12:24 / Claus Gittinger"
"Modified: / 02-05-2019 / 13:50:07 / Stefan Reise"
-!
-
-log: message severity: severity originator: originator
- self log: message severity: severity facility: (self facilityOf: originator) originator: originator
-
- "Created: / 15-09-2011 / 10:26:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
- "Modified: / 15-03-2013 / 11:20:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!MiniLogger class methodsFor:'logging - utils'!
-debug: message
+debug:message
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > DEBUG) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log:(self expand:message) severity: DEBUG originator: thisContext sender receiver
+ self
+ log:(self expand:message)
+ severity:DEBUG
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:32:39 / cg"
+ "Modified (format): / 24-05-2019 / 00:32:01 / Claus Gittinger"
!
-debug: format with: arg1
+debug:format with:arg1
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > DEBUG) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log:(self expand:format with: arg1) severity:DEBUG originator:(thisContext sender receiver)
+ self
+ log:(self expand:format with: arg1)
+ severity:DEBUG
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified (format): / 13-03-2017 / 15:37:47 / cg"
+ "Modified (format): / 24-05-2019 / 00:32:06 / Claus Gittinger"
!
-debug: format with: arg1 with: arg2
+debug:format with:arg1 with:arg2
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > DEBUG) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2) severity: DEBUG originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2)
+ severity:DEBUG
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:39:04 / cg"
+ "Modified (format): / 24-05-2019 / 00:32:13 / Claus Gittinger"
!
debug:format with:arg1 with:arg2 with:arg3
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > DEBUG) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2 with:arg3) severity: DEBUG originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2 with:arg3)
+ severity:DEBUG
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:41:26 / cg"
+ "Modified (format): / 24-05-2019 / 00:31:31 / Claus Gittinger"
!
enter:message
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ENTER) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log:(self expand:message) severity:ENTER originator:(thisContext sender receiver)
+ self
+ log:(self expand:message)
+ severity:ENTER
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:35:15 / cg"
+ "Modified (format): / 24-05-2019 / 00:31:20 / Claus Gittinger"
!
-enter: format with: arg1
+enter:format with:arg1
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ENTER) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with: arg1) severity: ENTER originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1)
+ severity:ENTER
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:37:51 / cg"
+ "Modified (format): / 24-05-2019 / 00:32:23 / Claus Gittinger"
!
-enter: format with: arg1 with: arg2
+enter:format with:arg1 with:arg2
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ENTER) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2) severity: ENTER originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2)
+ severity:ENTER
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:39:07 / cg"
+ "Modified (format): / 24-05-2019 / 00:32:30 / Claus Gittinger"
!
-enter: format with: arg1 with: arg2 with:arg3
+enter:format with:arg1 with:arg2 with:arg3
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ENTER) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2 with:arg3) severity: ENTER originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2 with:arg3)
+ severity:ENTER originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:41:32 / cg"
+ "Modified (format): / 24-05-2019 / 00:32:38 / Claus Gittinger"
!
-error: message
+error:message
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ERROR) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log:(self expand:message) severity:ERROR originator:(thisContext sender receiver)
+ self
+ log:(self expand:message)
+ severity:ERROR
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:35:29 / cg"
+ "Modified (format): / 24-05-2019 / 00:32:48 / Claus Gittinger"
!
-error: format with: arg1
+error:format with:arg1
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ERROR) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with: arg1) severity: ERROR originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1)
+ severity:ERROR
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:37:55 / cg"
+ "Modified (format): / 24-05-2019 / 00:33:11 / Claus Gittinger"
!
-error: format with: arg1 with: arg2
+error:format with:arg1 with:arg2
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ERROR) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2) severity: ERROR originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2)
+ severity:ERROR
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:39:12 / cg"
+ "Modified (format): / 24-05-2019 / 00:33:34 / Claus Gittinger"
!
-error: format with: arg1 with: arg2 with:arg3
+error:format with:arg1 with:arg2 with:arg3
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > ERROR) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2 with:arg3) severity: ERROR originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2 with:arg3)
+ severity:ERROR
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:41:37 / cg"
+ "Modified (format): / 24-05-2019 / 00:33:53 / Claus Gittinger"
!
-fatal: message
+fatal:message
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > FATAL) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log:(self expand:message) severity:FATAL originator:(thisContext sender receiver)
+ self
+ log:(self expand:message)
+ severity:FATAL
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:35:41 / cg"
+ "Modified (format): / 24-05-2019 / 00:34:07 / Claus Gittinger"
!
-fatal: format with: arg1
+fatal:format with:arg1
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > FATAL) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with: arg1) severity: FATAL originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1)
+ severity:FATAL
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:37:58 / cg"
+ "Modified (format): / 24-05-2019 / 00:34:32 / Claus Gittinger"
!
-fatal: format with: arg1 with: arg2
+fatal:format with:arg1 with:arg2
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > FATAL) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2) severity: FATAL originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2)
+ severity:FATAL
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:40:17 / cg"
+ "Modified (format): / 24-05-2019 / 00:34:53 / Claus Gittinger"
!
-fatal: format with: arg1 with: arg2 with:arg3
+fatal:format with:arg1 with:arg2 with:arg3
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > FATAL) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2 with:arg3) severity: FATAL originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2 with:arg3)
+ severity:FATAL
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:54:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:41:40 / cg"
+ "Modified (format): / 24-05-2019 / 00:35:20 / Claus Gittinger"
!
-info: message
+info:message
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > INFO) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log:(self expand:message) severity:INFO originator:(thisContext sender receiver)
+ self
+ log:(self expand:message)
+ severity:INFO
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:55:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:35:51 / cg"
+ "Modified (format): / 24-05-2019 / 00:35:33 / Claus Gittinger"
!
-info: format with: arg1
+info:format with:arg1
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > INFO) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with: arg1) severity: INFO originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1)
+ severity:INFO
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:55:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:38:01 / cg"
+ "Modified (format): / 24-05-2019 / 00:35:52 / Claus Gittinger"
!
-info: format with: arg1 with: arg2
+info:format with:arg1 with:arg2
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > INFO) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2) severity: INFO originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2)
+ severity:INFO
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:55:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:40:26 / cg"
+ "Modified (format): / 24-05-2019 / 00:36:14 / Claus Gittinger"
!
info:format with:arg1 with:arg2 with:arg3
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > INFO) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2 with:arg3) severity: INFO originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2 with:arg3)
+ severity:INFO
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:55:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:41:43 / cg"
+ "Modified (format): / 24-05-2019 / 00:36:32 / Claus Gittinger"
!
info:format with:arg1 with:arg2 with:arg3 with:arg4
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > INFO) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2 with:arg3 with:arg4) severity: INFO originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2 with:arg3 with:arg4)
+ severity:INFO
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:55:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:41:43 / cg"
+ "Modified (format): / 24-05-2019 / 00:36:47 / Claus Gittinger"
!
leave: message
@@ -1172,44 +1292,60 @@
"Modified: / 13-03-2017 / 15:42:24 / cg"
!
-warning: message
+warning:message
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > WARN) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log:(self expand:message) severity:WARN originator:(thisContext sender receiver)
+ self
+ log:(self expand:message)
+ severity:WARN
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:56:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:37:05 / cg"
+ "Modified (format): / 24-05-2019 / 00:37:03 / Claus Gittinger"
!
-warning: format with: arg1
+warning:format with:arg1
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > WARN) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with: arg1) severity: WARN originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1)
+ severity:WARN
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:56:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:38:31 / cg"
+ "Modified (format): / 24-05-2019 / 00:37:21 / Claus Gittinger"
!
warning:format with:arg1 with:arg2
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > WARN) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2) severity: WARN originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2)
+ severity:WARN
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:56:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:40:54 / cg"
+ "Modified (format): / 24-05-2019 / 00:37:39 / Claus Gittinger"
!
warning:format with:arg1 with:arg2 with:arg3
"/ a quick rejector to avoid overhead in deployed apps
((Threshold > WARN) and:[ThresholdPerClass isNil and:[ThresholdPerPackage isNil]]) ifTrue:[ ^ self ].
- self log: (self expand:format with:arg1 with:arg2 with:arg3) severity: WARN originator: thisContext sender receiver
+ self
+ log:(self expand:format with:arg1 with:arg2 with:arg3)
+ severity:WARN
+ originator:(thisContext sender receiver)
"Modified: / 02-12-2014 / 10:56:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 13-03-2017 / 15:42:27 / cg"
+ "Modified (format): / 24-05-2019 / 00:37:56 / Claus Gittinger"
! !
!MiniLogger class methodsFor:'private'!