View Source Where (where v0.1.0)

Logging and debug printing that include location information

Link to this section Summary

Functions

Like inspect, but logging at debug level

Like debug, but will do nothing unless the :debug option is truthy

IO.inspect with position information, an optional label and it configured not to truncate output.

Like inspect, but logging at error level

Tries to 'do what i mean'. Requires the debug option to be set regardless. If verbose is also set, will inspect else will attempt to print some (hopefully smaller) type-dependent summary of the data (list length, map keys).

Like debug?, but additionally required the :verbose option to be set. Intended for large output.

Like inspect, but logging at warn level

Link to this section Functions

Link to this macro

debug(thing, label \\ "")

View Source (macro)

Like inspect, but logging at debug level

Link to this macro

debug?(thing, label \\ "", options)

View Source (macro)

Like debug, but will do nothing unless the :debug option is truthy

Link to this macro

dump(thing, label \\ "")

View Source (macro)

IO.inspect with position information, an optional label and it configured not to truncate output.

Link to this macro

error(thing, label \\ "")

View Source (macro)

Like inspect, but logging at error level

Link to this macro

smart(thing, label \\ "", options)

View Source (macro)

Tries to 'do what i mean'. Requires the debug option to be set regardless. If verbose is also set, will inspect else will attempt to print some (hopefully smaller) type-dependent summary of the data (list length, map keys).

Link to this macro

verbose?(thing, label \\ "", options)

View Source (macro)

Like debug?, but additionally required the :verbose option to be set. Intended for large output.

Link to this macro

warn(thing, label \\ "")

View Source (macro)

Like inspect, but logging at warn level