View Source Untangle (untangle v0.1.0)
Logging and debug printing that include location information
Link to this section Summary
Functions
Custom backend for Kernel.dbg/2.
This function provides a backend for Kernel.dbg/2.
This function
Polyfill for dbg/2 if running Elixir pre 1.14
Like dump, but for logging at debug level
IO.inspect with position information, an optional label and configured not to truncate output too much.
Similar to dump, but for logging at error level, and returns an error tuple
Like dump, but for logging at info level
Like debug, but will do nothing unless the :debug option is truthy
Like maybe_dbg, but requires the :verbose option to be set. Intended for large outputs.
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 dump, but for logging at warn level
Link to this section Functions
Custom backend for Kernel.dbg/2.
This function provides a backend for Kernel.dbg/2.
This function:
- may log or print information about the given
env - may log or print information about
codeand its returned value (usingoptsto inspect terms) - returns the value returned by evaluating
code
Polyfill for dbg/2 if running Elixir pre 1.14
Like dump, but for logging at debug level
IO.inspect with position information, an optional label and configured not to truncate output too much.
Similar to dump, but for logging at error level, and returns an error tuple:
- an error tuple with the label, if any
- an error tuple with the passed value otherwise
iex> error(:value)
[error] :value
iex> error({:error, :value})
[error] :value
iex> error(:value, "with label")
[error] with label: :value
iex> error({:error, :value}, "with label")
[error] with label: :value
Like dump, but for logging at info level
Like debug, but will do nothing unless the :debug option is truthy
Like maybe_dbg, but requires the :verbose option to be set. Intended for large outputs.
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 dump, but for logging at warn level