distillery v2.0.0-rc.1 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.

Link to this section 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

Link to this section Types

Link to this type verbosity()
verbosity() :: :silent | :quiet | :normal | :verbose

Link to this section Functions

Link to this function 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
Link to this function debug(message)
debug(String.t()) :: :ok

Print a debug message in cyan

Link to this function debug(message, atom)
debug(String.t(), :plain) :: :ok

Print an unformatted debug message in cyan

Link to this function error(message)
error(String.t()) :: :ok

Print an error message in red

Link to this function info(message)
info(String.t()) :: :ok

Print an informational message in bright cyan

Link to this function notice(message)
notice(String.t()) :: :ok

Print a notice in yellow

Link to this function success(message)
success(String.t()) :: :ok

Print a success message in bright green

Link to this function warn(message)
warn(String.t()) :: :ok

Print a warning message in yellow