Liking cljdoc? Tell your friends :D

common.log-ext


log-add-appender!clj

(log-add-appender! appender)

添加日志记录项

添加日志记录项
sourceraw docstring

log-levelsclj

source

log-time-format!clj

(log-time-format!)
source

log-to-file!clj

(log-to-file! {:keys [file-name max-size backlog]
               :or {file-name "logs.log" max-size (* 10 1024 1024) backlog 5}})

配置log输出文件

配置log输出文件
sourceraw docstring

log-to-fn!clj

(log-to-fn! fn-key prn-fn)

配置log输出到函数回调 fn-key为log appender的键

配置log输出到函数回调
`fn-key`为log appender的键
sourceraw docstring

make-log-appenderclj

(make-log-appender prn-fn)

日志添加器 prn-fn 接收日志字符串的函数

日志添加器
`prn-fn` 接收日志字符串的函数
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close