Skip to content

duartejc/rogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rogger

Hex Version

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"}]
end

Include :rogger in your application list:

def application do
  [applications: [:rogger]]
end

Add 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"

About

Elixir logger to publish log messages in RabbitMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages