distillery v1.2.0 Mix.Releases.Logger

This is the logger implementation for Distillery. It is necessary to use because the process-based Logger in Elixir will drop messages when errors occur which kill the runtime, making debugging more difficult. We also colorize and format messages here.

Summary

Functions

Configure the logging verbosity of the release logger

Print a debug message in cyan

Print an unformatted debug message in cyan

Print an error message in red

Print an informational message in bright cyan

Print a notice in yellow

Print a success message in bright green

Print a warning message in yellow

Types

verbosity()
verbosity() :: :silent | :quiet | :normal | :verbose

Functions

configure(verbosity)
configure(verbosity) :: :ok

Configure the logging verbosity of the release logger.

Valid verbosity settings are:

- silent - no output except errors
- quiet - no output except warnings/errors
- normal - no debug output (default)
- verbose - all output
debug(message)
debug(String.t) :: :ok

Print a debug message in cyan

debug(message, atom)
debug(String.t, :plain) :: :ok

Print an unformatted debug message in cyan

error(message)
error(String.t) :: :ok

Print an error message in red

info(message)
info(String.t) :: :ok

Print an informational message in bright cyan

notice(message)
notice(String.t) :: :ok

Print a notice in yellow

success(message)
success(String.t) :: :ok

Print a success message in bright green

warn(message)
warn(String.t) :: :ok

Print a warning message in yellow