summaryrefslogtreecommitdiffstats
path: root/logging.txr
diff options
context:
space:
mode:
Diffstat (limited to 'logging.txr')
-rw-r--r--logging.txr13
1 files changed, 13 insertions, 0 deletions
diff --git a/logging.txr b/logging.txr
new file mode 100644
index 0000000..77d98ad
--- /dev/null
+++ b/logging.txr
@@ -0,0 +1,13 @@
+@(do
+ (openlog "tamarind" log-pid log-daemon))
+@(if debug-enable)
+@ (define dbg (string))
+@ (do (syslog log-debug "~a" string))
+@ (end)
+@(else)
+@ (define dbg (string))
+@ (end)
+@(end)
+@(define inf (string))
+@ (do (syslog log-info "~a" string))
+@(end)