Commit f4c112b5 authored by Jens-Christian Fischer's avatar Jens-Christian Fischer
Browse files

add file logging for errors

parent b8f72e22
......@@ -33,5 +33,16 @@ config :grains, Grains.Repo,
hostname: System.get_env("DB_HOSTNAME"),
pool_size: 20
# tell logger to load a LoggerFileBackend processes
config :logger,
backends: [{LoggerFileBackend, :error_log}]
# configuration for the {LoggerFileBackend, :error_log} backend
config :logger, :error_log,
path: "/var/log/grains/error.log",
level: :error
# This line appears further down. Do not forget to uncomment it!
config :phoenix, :serve_endpoints, true
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.6",
version: "0.0.7",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......@@ -38,6 +38,7 @@ defmodule Grains.Mixfile do
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
{:logger_file_backend, "~> 0.0.4"},
{:distillery, "~>1.2.2"}]
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment