Skip to content
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

Merged
merged 19 commits into from
Dec 9, 2015
Merged

Implement log colorization #60

merged 19 commits into from
Dec 9, 2015

Conversation

troy
Copy link
Contributor

@troy troy commented Dec 2, 2015

Continues #57 in a branch on this repo.

def colorize(event)
attribs = ""
attribs += event.data["hostname"] if
options[:color] == :host || options[:color] == :host_program
Copy link
Contributor

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.

@lmarburger lmarburger assigned troy and unassigned lmarburger Dec 3, 2015
@troy troy assigned lmarburger and unassigned troy Dec 6, 2015
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
require 'papertrail/cli'
require './lib/papertrail/cli'
Copy link
Contributor

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.

@lmarburger
Copy link
Contributor

This looks ready to go to me.

@lmarburger lmarburger merged commit df47e19 into master Dec 9, 2015
@lmarburger lmarburger deleted the colorize branch December 9, 2015 15:55
@lmarburger
Copy link
Contributor

Released!

Thanks @zakwilson!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants