Last active
September 9, 2015 14:11
-
-
Save fmquaglia/5be269f662aff1f358e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BH | |
def logger | |
@@logger ||= Le.new(ENV['BH_LE_TOKEN'], :local => 'log/bullhorn.log') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@apillet