Liking cljdoc? Tell your friends :D

clj-journal.util


args->journal-fieldsclj

(args->journal-fields & args)

Convert args into systemd journal fields (i.e. PRIORITY=3). Fields with nil values are pruned.

Well-known fields are listed in man systemd.journal-fields.7.

Convert args into systemd journal fields (i.e. `PRIORITY=3`). Fields with
`nil` values are pruned.

Well-known fields are listed in man `systemd.journal-fields.7`.
sourceraw docstring

FieldNamecljprotocol

Turn anything into a string.

Turn anything into a string.

stringifyclj

(stringify _)
sourceraw docstring

level->syslogclj

(level->syslog k)

Convert a keyword log level k into an integer representing a syslog log level. If k is an integer it's returned as-is.

Throws an IllegalArgumentException if given an invalid log level keyword.

Convert a keyword log level `k` into an integer representing a syslog log
level. If `k` is an integer it's returned as-is.

Throws an IllegalArgumentException if given an invalid log level keyword.
sourceraw docstring

log-levelsclj

Symbolic log levels. Based on man syslog.2:

KERN_EMERG 0 System is unusable KERN_ALERT 1 Action must be taken immediately KERN_CRIT 2 Critical conditions KERN_ERR 3 Error conditions KERN_WARNING 4 Warning conditions KERN_NOTICE 5 Normal but significant condition KERN_INFO 6 Informational KERN_DEBUG 7 Debug-level messages 8 Trace message (non-standard)

Symbolic log levels. Based on `man syslog.2`:

KERN_EMERG   0 System is unusable
KERN_ALERT   1 Action must be taken immediately
KERN_CRIT    2 Critical conditions
KERN_ERR     3 Error conditions
KERN_WARNING 4 Warning conditions
KERN_NOTICE  5 Normal but significant condition
KERN_INFO    6 Informational
KERN_DEBUG   7 Debug-level messages
             8 Trace message (non-standard)
sourceraw docstring

to-field-nameclj

(to-field-name o)

Stringify arbitrary objects to use as journal field names.

Prefixes invalid field names (i.e. not starting with a letter) with "X_" to allow passing arbitrary names to journal.

Stringify arbitrary objects to use as journal field names.

Prefixes invalid field names (i.e. not starting with a letter) with "X_" to
allow passing arbitrary names to journal.
sourceraw docstring

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

× close