-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement log colorization #60
Conversation
def colorize(event) | ||
attribs = "" | ||
attribs += event.data["hostname"] if | ||
options[:color] == :host || options[:color] == :host_program |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather see a multi-line conditional here than a 2-line suffix.
@@ -1,5 +1,5 @@ | |||
#!/usr/bin/env ruby | |||
require 'papertrail/cli' | |||
require './lib/papertrail/cli' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this added? ./lib
will be added to $PATH
by rubygems or bundler. bundle exec papertrail
should work here. At least it does for me but I'm not sure if I have bundler configured special to handle that.
This looks ready to go to me. |
Thanks @zakwilson! |
Continues #57 in a branch on this repo.