https://github.com/duartejc/rogger
Elixir logger to publish log messages in RabbitMQ
https://github.com/duartejc/rogger
Last synced: 1 day ago
JSON representation
Elixir logger to publish log messages in RabbitMQ
- Host: GitHub
- URL: https://github.com/duartejc/rogger
- Owner: duartejc
- License: mit
- Created: 2015-04-24T20:04:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-03T21:17:48.000Z (about 5 years ago)
- Last Synced: 2025-04-23T22:03:24.637Z (1 day ago)
- Language: Elixir
- Homepage:
- Size: 191 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Elixir logger to publish log messages in RabbitMQ. (Logging)
- fucking-awesome-elixir - rogger - Elixir logger to publish log messages in RabbitMQ. (Logging)
- awesome-elixir - rogger - Elixir logger to publish log messages in RabbitMQ. (Logging)
README
Rogger
======[](https://hex.pm/packages/rogger)
Simple Elixir logger which publishes messages in RabbitMQ
## Usage
Add Rogger as a dependency in your mix.exs file.
def deps do
[{:rogger, "~> 0.0.3"}]
endInclude :rogger in your application list:
def application do
[applications: [:rogger]]
endAdd configuration related to your RabbitMQ instance:
config :rogger,
host: "localhost",
username: "guest",
password: "guest"Start Rogger process using **Rogger.start_link([])** anywhere in your application or register it as a supervised process.
Then, run **mix deps.get** to fetch and compile Rogger.
Publish your logs :
Rogger.info "Some info message"
Rogger.warn "Some warning message"
Rogger.error "Some error message"