Snakepit.Logger (Snakepit v0.6.10)

View Source

Centralized logging for Snakepit with configurable verbosity.

Users can control Snakepit's log output with:

config :snakepit, log_level: :warning  # Only show warnings and errors
config :snakepit, log_level: :info     # Show info, warnings, and errors (default)
config :snakepit, log_level: :debug    # Show everything
config :snakepit, log_level: :none     # Suppress all Snakepit logs

Summary

Functions

Log at debug level if configured log level allows it.

Log at error level if configured log level allows it.

Log at info level if configured log level allows it.

Check if logging at the given level is enabled.

Log at warning level if configured log level allows it.

Functions

debug(message, metadata \\ [])

Log at debug level if configured log level allows it.

error(message, metadata \\ [])

Log at error level if configured log level allows it.

info(message, metadata \\ [])

Log at info level if configured log level allows it.

should_log?(level)

Check if logging at the given level is enabled.

warning(message, metadata \\ [])

Log at warning level if configured log level allows it.