#DOCUMENTATION by exept
class: UnixSyslogInterface class
comment/format in: #basicLog:severity:facility:originator:attachment:
--- a/UnixSyslogInterface.st Sun Feb 23 16:33:00 2020 +0100
+++ b/UnixSyslogInterface.st Sun Feb 23 16:46:23 2020 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
"
COPYRIGHT (c) 2018 by eXept Software AG
All Rights Reserved
@@ -68,7 +66,7 @@
"
[exBegin]
Logger := self.
- self info:'%1 info demo » (%2%)' with:'stx' with:16.
+ self info:'%1 info demo » (%2%)' with:'stx' with:16.
self warning:'%1 warning demo (%2%)' with:'stx' with:16.
self error:'%1 error demo (%2%)' with:'stx' with:16.
self fatal:'%1 fatal demo (%2%)' with:'stx' with:16.
@@ -395,11 +393,12 @@
UseCommand ifTrue:[
"if we do not support FFI, use a comman interface"
OperatingSystem
-"/ --id doesn't work with RedHat 7.0
-"/ executeCommand:('/usr/bin/logger --id=%1 -p %2.%3'
+ "/ --id doesn't work with RedHat 7.0
+ "/ executeCommand:('/usr/bin/logger --id=%1 -p %2.%3'
executeCommand:('/usr/bin/logger -p %2.%3'
bindWith:OperatingSystem getProcessId
- with:DefaultSyslogFacilityString with:(PriorityToStringMapping at:priority+1))
+ with:DefaultSyslogFacilityString
+ with:(PriorityToStringMapping at:priority+1))
inputFrom:messageAsSent readStream
outputTo:nil
errorTo:Transcript.
@@ -412,7 +411,7 @@
self apiSyslog:(priority bitOr:DefaultSyslogFacility) format:'%s' message:messageAsSent.
"
- self warning:'%1 warning demo » (%2%)' with:'stx' with:16.
+ self warning:'%1 warning demo » (%2%)' with:'stx' with:16.
self fatal:'%1 fatal demo (%2%)' with:'stx' with:16.
self closelog.
"