Skip to content

Commit

Permalink
Configure
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Feb 5, 2024
1 parent 9a15cba commit d14f2ea
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Config

config :logger,
level: :info

config :logger, :default_formatter,
format: "$time $metadata[$level] $message\n",
metadata: [:pid, :module, :function, :line]

import_config "#{config_env()}.exs"
5 changes: 5 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Config

config :logger, :default_formatter,
format: "$time $metadata[$level] $message\n",
metadata: [:file, :line]
1 change: 1 addition & 0 deletions config/prod.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import Config
17 changes: 17 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Config

config :logger,
level: :warning,
always_evaluate_messages: true

config :logger, :default_formatter,
format: "$time $metadata[$level] $message\n",
metadata: [:file, :line]

config :junit_formatter,
report_dir: "#{Mix.Project.build_path()}/junit-reports",
automatic_create_dir?: true,
print_report_file: true,
# prepend_project_name?: true,
include_filename?: true,
include_file_line?: true

0 comments on commit d14f2ea

Please sign in to comment.