forked from lhope/cl-syslog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.lisp
69 lines (62 loc) · 1.74 KB
/
package.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
;;;; See the LICENSE file for licensing information.
(in-package #:cl-user)
(defpackage #:cl-syslog
(:nicknames #:syslog)
(:use #:cl)
(:shadow #:log)
;; *FEATURES* symbols
(:export #:rfc5424)
;; Raw C interface
(:export
#:openlog
#:closelog
#:syslog)
;; Basic syslog logging interface.
(:export
#:log
#:get-facility
#:get-priority
#:+log-pid+
#:+log-cons+
#:+log-odelay+
#:+log-ndelay+
#:+log-nowait+
#:+log-perror+
#:invalid-priority
#:invalid-facility)
;; RFC 5424 logging
(:export
#:define-structured-data-id ; MACRO
#:malformed-rfc5424-input ; CONDITION
#:null-log-writer ; FUNCTION
#:syslog-log-writer ; FUNCTION
#:stream-log-writer ; FUNCTION
#:udp-log-writer ; FUNCTION
#:tee-to-stream ; FUNCTION
#:join-log-writers ; FUNCTION
#:rfc5424-logger ; CLASS
#:current-time ; GENERIC, METHOD
#:format-log ; GENERIC, METHOD
#:rfc-log ; MACRO
)
;; RFC 5424 IETF-reserved structured data names
(:export
#:|timeQuality|
#:|tzKnown|
#:|isSynced|
#:|syncAccuracy|
#:|origin|
#:|ip|
#:|enterpriseId|
#:|software|
#:|swVersion|
#:|meta|
#:|sequenceId|
#:|sysUpTime|
#:|language|)
(:documentation "Common Lisp interface to syslog."))
(eval-when (:load-toplevel :execute)
;; :CL-SYSLOG-RFC5424 indicates that the loaded syslog conforms to
;; the RFC 5424 standard. We sould like to indicate this feature is
;; present only until after the logging library is loaded.
(pushnew 'cl-syslog::rfc5424 *features*))