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 %syslog (facility level message) "scm_syslog")
|
||||||
(define-stubless-foreign closelog () "scm_closelog")
|
(define-stubless-foreign closelog () "scm_closelog")
|
||||||
|
|
||||||
(define (openlog ident option facility)
|
(define (openlog ident . args)
|
||||||
(%openlog ident option facility))
|
(let-optionals args ((option syslog-option/default)
|
||||||
|
(facility syslog-facility/default))
|
||||||
|
(%openlog ident option facility)))
|
||||||
|
|
||||||
(define (syslog facility level message)
|
(define (syslog message . args)
|
||||||
(%syslog facility level (double-char #\% message)))
|
(let-optionals args ((level syslog-level/default)
|
||||||
|
(facility syslog-facility/default))
|
||||||
|
(%syslog facility level (double-char #\% message))))
|
||||||
|
|
||||||
|
|
||||||
(define (double-char the-char s)
|
(define (double-char the-char s)
|
||||||
|
|
Loading…
Reference in New Issue