defmodule LogfmtEx.MixProject do
use Mix.Project
@version "0.4.2"
@url "https://github.com/akasprzok/logfmt_ex"
def project do
[
app: :logfmt_ex,
version: @version,
elixir: "~> 1.12 or ~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex-specific
description: description(),
package: package(),
source_url: @url,
docs: docs(),
# Testing
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: :dev, runtime: false},
{:git_hooks, "~> 0.7", only: :dev, runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:benchee, "~> 1.0", only: :dev}
]
end
defp description do
"""
A logfmt log formatter for Elixir's :console logger backend.
"""
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @url},
files: ~w(mix.exs lib LICENSE.md),
maintainers: ["Andreas Kasprzok"]
]
end
defp docs do
[
main: "LogfmtEx"
]
end
end