ArkEcosystem Elixir Client v1.0.0 ArkEcosystem.Client.Logger View Source

This is a wrapper for the standard Logger module. It contains convenience methods for logging exceptions and objects in addition to strings.

Link to this section Summary

Functions

Outputs the object or string in debug mode

Outputs the object or string in error mode

Outputs the object or string in info mode

Outputs the object or string in the mode passed mode

Converts a rescued error and stacktrace into a pretty error output

Outputs the object or string in warn mode

Link to this section Functions

Link to this function

debug(value) View Source
debug(any()) :: any()

Outputs the object or string in debug mode.

Returns the object passed.

Link to this function

error(value) View Source
error(any()) :: any()

Outputs the object or string in error mode.

Returns the object passed.

Outputs the object or string in info mode.

Returns the object passed.

Link to this function

log(atom, value) View Source
log(Atom.t(), any()) :: any()

Outputs the object or string in the mode passed mode.

Returns the object passed.

Link to this function

rescued_error(err, stacktrace) View Source
rescued_error(Exception.t(), List.t()) :: Exception.t()

Converts a rescued error and stacktrace into a pretty error output.

Returns the error object passed.

Outputs the object or string in warn mode.

Returns the object passed.