Skip to content

Let use async sending #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ config :logger,
backends: [:console, {Logger.Backends.Gelf, :gelf_logger}]
```

If you want to use the asynchronous handler then you have to use:

```elixir
config :logger,
backends: [:console, {Logger.Backends.GelfAsync, :gelf_logger}]
```

In addition, you'll need to pass in some configuration items to the backend
itself:

Expand Down
5 changes: 3 additions & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ use Mix.Config
# 3rd-party users, it should be done in your "mix.exs" file.

config :logger,
backends: [{Logger.Backends.Gelf, :gelf_logger}]
backends: [],
truncate: :infinity

config :logger, :gelf_logger,
json_encoder: Poison,
json_encoder: Jason,
host: "127.0.0.1",
port: 12201,
application: "myapp",
Expand Down
356 changes: 0 additions & 356 deletions lib/gelf_logger.ex

This file was deleted.

Loading