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.
sourceraw docstring

add-handler-oncecljs

source

configclj/smacro

(config & keyvals)
source

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.
sourceraw docstring

debugclj/smacro

(debug & keyvals)
source

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.
sourceraw docstring

errorclj/smacro

(error & keyvals)
source

fineclj/smacro

(fine & keyvals)
source

finerclj/smacro

(finer & keyvals)
source

finestclj/smacro

(finest & keyvals)
source

infoclj/smacro

(info & keyvals)
source

Levelcljs

source

levelcljs

(level lvl)
source

level-valuecljs

(level-value lvl)

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

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

levelscljs

source

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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

logger-handlers-propcljs

source

make-log-recordcljs

(make-log-record level message name exception)
source

name-strcljs

(name-str x)
source

(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.
sourceraw docstring

remove-handlercljs

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

root-loggercljs

source

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.
sourceraw 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"]])
```
sourceraw docstring

severeclj/smacro

(severe & keyvals)
source

shoutclj/smacro

(shout & keyvals)
source

spyclj/smacro

(spy form)
source

traceclj/smacro

(trace & keyvals)
source

warnclj/smacro

(warn & keyvals)
source

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

× close