Optional arguments for syslog and openlog.
This commit is contained in:
parent
de88c03cd2
commit
51552b6842
|
@ -990,11 +990,15 @@
|
|||
(define-stubless-foreign %syslog (facility level message) "scm_syslog")
|
||||
(define-stubless-foreign closelog () "scm_closelog")
|
||||
|
||||
(define (openlog ident option facility)
|
||||
(%openlog ident option facility))
|
||||
(define (openlog ident . args)
|
||||
(let-optionals args ((option syslog-option/default)
|
||||
(facility syslog-facility/default))
|
||||
(%openlog ident option facility)))
|
||||
|
||||
(define (syslog facility level message)
|
||||
(%syslog facility level (double-char #\% message)))
|
||||
(define (syslog message . args)
|
||||
(let-optionals args ((level syslog-level/default)
|
||||
(facility syslog-facility/default))
|
||||
(%syslog facility level (double-char #\% message))))
|
||||
|
||||
|
||||
(define (double-char the-char s)
|
||||
|
|
Loading…
Reference in New Issue