Liking cljdoc? Tell your friends :D

zensols.actioncli.log4j2

Conigure and change the log level of the log4j2 system.

Conigure and change the log level of the log4j2 system.
raw docstring

change-log-levelclj

(change-log-level level-thing)
(change-log-level log-name level-thing)

Change the Log4j2 log level.

level-thing the log level as either the Level instance or a string.

Change the Log4j2 log level.

**level-thing** the log level as either the Level instance or a string.
raw docstring

configureclj

(configure res)

Congigure the Log4j2 system with res, which can be anything usable with [[clojure.java.io/input-stream]]. If res is a string, interpret as a resource.

Congigure the Log4j2 system with **res**, which can be anything usable
with [[clojure.java.io/input-stream]].  If **res** is a string, interpret as
a resource.
raw docstring

log-level-set-optionclj

(log-level-set-option)
(log-level-set-option short long)

Create an option that sets the Log4j2 level. Note that all you need to do is add this to the option definition and the log level is set in the validate phase.

Create an option that sets the Log4j2 level.  Note that all you need to do
is add this to the option definition and the log level is set in the validate
phase.
raw docstring

log-level-set-option-defaultclj

Default log level for log-level-set-option.

Default log level for [[log-level-set-option]].
raw docstring

with-log-levelcljmacro

(with-log-level log-name level-thing & body)

Set the the log level to level-thing (see change-log-level) for the execution of body.

The log-name parameter is one of the following:

  • the string package or namespace name of the logger (usual log name)
  • :ns for the current namespace's logger
Set the the log level to **level-thing** (see [[change-log-level]]) for the
execution of **body**.

The **log-name** parameter is one of the following:

* the string package or namespace name of the logger (usual log name)
* `:ns` for the current namespace's logger
raw docstring

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

× close