m-mullins/elm-console/1.0.1

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/m-mullins/elm-console is gone (deleted or private); Software Heritage has not archived the repo; no fork with tag 1.0.1 found (17 same-name repos checked); no cached copy. Use another version.

Details

Console

Module that wraps the defacto set of features provided by the console object in most browsers

see: https://developer.mozilla.org/en-US/docs/Web/API/console

Utility

assert : Bool -> a -> a

Wrap the console.assert function https://console.spec.whatwg.org/#assert https://developer.mozilla.org/en-US/docs/Web/API/Console/assert

Console.assert (1 == 0) "1 is not 0"


Console.assert (1 == 0) ( 1, 0 )

Logging

log : String -> a -> a

Wrap the console.log function https://console.spec.whatwg.org/#log https://developer.mozilla.org/en-US/docs/Web/API/Console/log

Console.log "log message" ( 1, 0 )
warn : String -> a -> a

Wrap the console.warn function https://console.spec.whatwg.org/#warn https://developer.mozilla.org/en-US/docs/Web/API/Console/warn

Console.warn "warn message" ( 1, 0 )
debug : String -> a -> a

Wrap the console.debug function https://console.spec.whatwg.org/#debug https://developer.mozilla.org/en-US/docs/Web/API/Console/debug

Console.debug "debug message" ( 1, 0 )
info : String -> a -> a

Wrap the console.info function https://console.spec.whatwg.org/#info https://developer.mozilla.org/en-US/docs/Web/API/Console/info

Console.info "info message" ( 1, 0 )
error : String -> a -> a

Wrap the console.error function https://console.spec.whatwg.org/#error https://developer.mozilla.org/en-US/docs/Web/API/Console/error

Console.error "error message" ( 1, 0 )

More logging

table : a -> a

Wrap the console.table function https://console.spec.whatwg.org/#table https://developer.mozilla.org/en-US/docs/Web/API/Console/table

Console.table [ 1, 2, 3, 4 ]


Console.table { x = 1, y = 2 }

Log group

group : String -> a -> a
groupCollapsed : String -> a -> a

Timing

time : String -> a -> a
timeEnd : String -> a -> a
timeLog : String -> a -> a