A log implementation library for Elixir.
Switch branches/tags
Clone or download
Latest commit 5d795d7 Jan 17, 2018
Failed to load latest commit information.
.circleci Add Circleci config Jul 20, 2017
config refactor Jul 18, 2017
lib bump version Jan 18, 2018
test Fix test and Add metadata_filter Jul 25, 2017
.dialyzerignore fix type annotation Jul 15, 2017
.gitignore Initial Commit Jul 11, 2017
README.md Update README Oct 27, 2017
mix.exs bump version Jan 18, 2018
mix.lock bump version Jan 18, 2018



hex.pm version hex.pm


  • Loggix is a custom Logger Backend with easy configiration.

using GenEvent.


  • Configiration of log rotation
  • JSON, XML Encode feature
  • Metadata filter


If available in Hex, the package can be installed by adding loggix to your list of dependencies in mix.exs:

def deps do
  [{:loggix, "~> 0.0.7"}]

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/loggix.


To configure loggix as app logger backend, set environments into config/config.exs.

config :logger,
  backends: [{Loggix, :error_log}]
config :logger, :error_log,
  path: "var/log/error_log",
  level: :error,
  json_encoder: Poison,
  metadata: [:user_id, :is_auth],
  rotate: %{max_bytes: 4096, keep: 6},
  metadata_filter: [:is_app]
  • path : String - the path for a log file
  • level : Logger.Level - the logging level for backend
  • format : String - the log format
  • metadata : [atom] - the metadata to include
  • rotate: map(max_bytes, is_auth) : configuration of log rotation
  • metadata_filter: configuration of filtering log