(log-to-file! {:keys [file-name max-size backlog]
:or {file-name "logs.log" max-size (* 10 1024 1024) backlog 5}})
配置log输出文件
配置log输出文件
(log-to-fn! fn-key prn-fn)
配置log输出到函数回调
fn-key
为log appender的键
配置log输出到函数回调 `fn-key`为log appender的键
(make-log-appender prn-fn)
日志添加器
prn-fn
接收日志字符串的函数
日志添加器 `prn-fn` 接收日志字符串的函数
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close