Logdna
LogDNA Logger Backend
Installation
If available in Hex, the package can be installed
by adding logdna
to your list of dependencies in mix.exs
:
def deps do
[
{:logdna, "~> 0.0.0"}
]
end
LogDNA Configuration
config :logdna, :config,
max_buffer: <desired_buffer_size>, # default is 10
app: System.get_env("LOGDNA_APP") || "app",
ingestion_key: System.get_env("LOGDNA_KEY"),
hostname: System.get_env("LOGDNA_HOSTNAME") || "localhost"
Logger Configuration
Configure the following as you would for console backend
config :logger, :logdna,
level: :info,
format: "$time $metadata[$level] $message\n"
Running Tests
MIX_ENV=test mix test
Contributing
- Fork it ( https://github.com/[my-github-username]/logdna/fork )
- Create your feature branch (git checkout -b feature/my_new_feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request