Skip to content

A simple example and test application for logger_papertrail_backend

Notifications You must be signed in to change notification settings

larskrantz/logger_papertrail_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoggerPapertrailTest

Simple app to test your papertrail-app

Running

  1. Clone.
  2. Get your papertrail host and port from System setup. The papertrail url is papertrail://<host from system setup>:<port from system setup>/testing (or replace testing with a system name of your choosing).
  3. Start iex your url from above like PAPERTRAIL_URL=<url from above> iex -S mix
  4. In iex, run iex(1)> LoggerPapertrailTest.test
  5. It should log three messages to console, and printing the papertrailapp-url where you should find the warn and error-messages (level for logger_papertrail_backend is set to :warn in config.exs, so the info-message should not be seen)
  6. Expected output:
Oct 20 16:49:51 testing LoggerPapertrailTest:   Warn-logging
Oct 20 16:49:51 testing LoggerPapertrailTest:   Error-logging

About

A simple example and test application for logger_papertrail_backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages