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

Set log color explicitly #82

Merged
merged 2 commits into from
Feb 15, 2015
Merged

Set log color explicitly #82

merged 2 commits into from
Feb 15, 2015

Conversation

mizzy
Copy link
Member

@mizzy mizzy commented Feb 14, 2015

変更があった場合だけわかりやすくログを緑で表示するために、同じ severity でも色を変えられるようにしてみました。 indent と同じように、以下のように書くことで色を指定します。

Logger.formatter.color :green do
  Logger.info "#{key} will be '#{value}'"
end

このような出力になります。

itamae_log

問題がないか、確認お願いします!> @ryotarai

@ryotarai
Copy link
Member

ありがとうございます!よさそうなのでマージしますね。

ryotarai added a commit that referenced this pull request Feb 15, 2015
@ryotarai ryotarai merged commit 1176625 into master Feb 15, 2015
@ryotarai ryotarai deleted the set-log-color branch February 15, 2015 02:42
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.

2 participants