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

more logging stuff

parent 65ce522a
......@@ -41,3 +41,12 @@ config :grains, Grains.Repo,
database: "grains_dev",
hostname: "localhost",
pool_size: 10
# 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: "log/error.log",
level: :error
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.7",
version: "0.0.9",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......@@ -19,7 +19,7 @@ defmodule Grains.Mixfile do
def application do
[mod: {Grains, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
:phoenix_ecto, :postgrex]]
:phoenix_ecto, :postgrex, :logger_file_backend]]
end
# Specifies which paths to compile per environment.
......@@ -38,7 +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"},
{:logger_file_backend, "~> 0.0.8"},
{:distillery, "~>1.2.2"}]
end
......
Markdown is supported
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