Liking cljdoc? Tell your friends :D

lambdaisland.glogi


add-handlercljs

(add-handler handler-fn)
(add-handler name handler-fn)

Add a log handler to the given logger, or to the root logger if no logger is specified. The handler is a function which receives a map as its argument.

A given handler-fn is only added to a given logger once, even when called repeatedly.

Add a log handler to the given logger, or to the root logger if no logger is
specified. The handler is a function which receives a map as its argument.

A given handler-fn is only added to a given logger once, even when called
repeatedly.
raw docstring

add-handler-oncecljs


configclj/smacro

(config & keyvals)

console-autoinstall!cljs

(console-autoinstall!)

Log to the browser console if the browser location contains Debug=true.

Log to the browser console if the browser location contains Debug=true.
raw docstring

debugclj/smacro

(debug & keyvals)

enable-console-logging!cljs

(enable-console-logging!)

Log to the browser console. This uses goog.debug.Console directly, use [lambdaisland.glogi.console/install!] for a version that plays nicely with cljs-devtools.

Log to the browser console. This uses goog.debug.Console directly,
use [lambdaisland.glogi.console/install!] for a version that plays nicely with
cljs-devtools.
raw docstring

errorclj/smacro

(error & keyvals)

fineclj/smacro

(fine & keyvals)

finerclj/smacro

(finer & keyvals)

finestclj/smacro

(finest & keyvals)

infoclj/smacro

(info & keyvals)

Levelcljs


levelcljs

(level lvl)

level-valuecljs

(level-value lvl)

Get the numeric value of a log level (keyword).

Get the numeric value of a log level (keyword).
raw docstring

levelscljs


logcljs

(log name lvl message)
(log name lvl message exception)

Output a log message to the given logger, optionally with an exception to be logged.

Output a log message to the given logger, optionally with an exception to be
logged.
raw docstring

log-to-div!cljs

(log-to-div! element)

Log messages to an element on the page. Returns the DivConsole instance.

Log messages to an element on the page. Returns the DivConsole instance.
raw docstring

loggercljs

(logger n)
(logger n level)

Get a logger by name, and optionally set its level. Name can be a string keyword, or symbol. The special keyword :glogi/root returns the root logger.

Get a logger by name, and optionally set its level. Name can be a string
keyword, or symbol. The special keyword :glogi/root returns the root logger.
raw docstring

logger-handlers-propcljs


make-log-recordcljs

(make-log-record level message name exception)

name-strcljs

(name-str x)

(popup-logger-window!)

Pop up a browser window which will display log messages. Returns the FancyWindow instance.

Pop up a browser window which will display log messages. Returns the FancyWindow instance.
raw docstring

remove-handlercljs

(remove-handler handler-fn)
(remove-handler name handler-fn)

root-loggercljs


set-levelcljs

(set-level name lvl)

Set the level (a keyword) of the given logger, identified by name.

Set the level (a keyword) of the given logger, identified by name.
raw docstring

set-levelscljs

(set-levels lvls)

Convenience function for setting several levels at one.

Takes a map of logger name => level keyword. The logger name can be a string, keyword, or symbol. The keyword :glogi/root refers to the root logger and is equivalent to using an empty string.

This function is exported so it is still available in optimized builds to set levels from the javascript console. In this case use nested arrays and strings. Use an empty string for the root logger.

lambdaisland.glogi.set_levels([["" "debug"] ["lambdaisland" "trace"]])
Convenience function for setting several levels at one.

Takes a map of logger name => level keyword. The logger name can be a string,
keyword, or symbol. The keyword :glogi/root refers to the root logger and is
equivalent to using an empty string.

This function is exported so it is still available in optimized builds to set
levels from the javascript console. In this case use nested arrays and
strings. Use an empty string for the root logger.

``` javascript
lambdaisland.glogi.set_levels([["" "debug"] ["lambdaisland" "trace"]])
```
raw docstring

severeclj/smacro

(severe & keyvals)

shoutclj/smacro

(shout & keyvals)

spyclj/smacro

(spy form)

traceclj/smacro

(trace & keyvals)

warnclj/smacro

(warn & keyvals)

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

× close