Skip to content

Instantly share code, notes, and snippets.

@fmquaglia
Last active September 9, 2015 14:11
Show Gist options
  • Save fmquaglia/5be269f662aff1f358e7 to your computer and use it in GitHub Desktop.
Save fmquaglia/5be269f662aff1f358e7 to your computer and use it in GitHub Desktop.
def log(message, level= :info, banner= false)
BH.logger.send level, '-'*80 if banner
BH.logger.send level, message
BH.logger.send level, '-'*80 if banner
end
module BH
def logger
@@logger ||= Le.new(ENV['BH_LE_TOKEN'], :local => 'log/bullhorn.log')
end
end
@fmquaglia
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment