I am interested in why Elixir has a built in Logger when the Lager project already exists within the Erlang ecosystem? I am sure there are good reasons, but I cannot find any articles that explain why. Seems to me that Lager has some pretty killer features, such as the detailed crash reports and the source code line reporting with each statement. Any help is appreciated as I am evaluating which logger to utilize within a Phoenix application I am working on.Thanks!
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/1c66d25e-ed56-4d40-8a22-b4561308d33b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/3a2b422b-7367-498d-8b3b-06b60082d754%40googlegroups.com.
Beautiful is
better than ugly,
Explicit is better than implicit,
Simple is better than complex,
Complex is better than complicated.
The Zen of Python, by Tim Peters
...
config :logger, :console, format: "\n$date $time [$level] $metadata$message", metadata: [:request_id]
...
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/188ef362-6a9c-4e36-8bdd-f823c9c29915%40googlegroups.com.
defmodule AppName.Endpoint do use Phoenix.Endpoint, otp_app: :app_name
# Serve at "/" the static files from "priv/static" directory. # # You should set gzip to true if you are running phoenix.digest # when deploying your static files in production. plug Plug.Static, at: "/", from: : app_name, gzip: false, only: ~w(css images js favicon.ico robots.txt)
# Code reloading can be explicitly enabled under the # :code_reloader configuration of your endpoint. if code_reloading? do plug Phoenix.LiveReloader plug Phoenix.CodeReloader end
plug Plug.Logger
plug Plug.Parsers, parsers: [:urlencoded, :multipart, :json], pass: ["*/*"], json_decoder: Poison
plug Plug.MethodOverride plug Plug.Head
plug Plug.Session, store: :cookie, key: "_app_name_key", signing_salt: "[REDACTED]"
plug :router, AppName.Routerend
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/55de6940-6f7e-485f-9011-c665d7a7d562%40googlegroups.com.