-
Notifications
You must be signed in to change notification settings - Fork 27
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
element_path method added #263
Conversation
@@ -107,7 +107,7 @@ def default_formatter | |||
params = if Howitzer.hide_datetime_from_log | |||
{ pattern: '[%l] %m' } | |||
else | |||
{ pattern: '%d [%l] :: %m', date_pattern: '%Y/%m/%d %H:%M:%S' } | |||
{ pattern: '%<day>d [%l] :: %m', date_pattern: '%Y/%m/%<day>d %H:%M:%S' } |
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.
???
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.
It shows errors like this:
lib/howitzer/log.rb:110:30: C: Style/FormatStringToken: Prefer annotated tokens (like %<foo>s) over unannotated tokens (like %s).
{ pattern: '%d [%l] :: %m', date_pattern: '%Y/%m/%d %H:%M:%S' }
^^
lib/howitzer/log.rb:110:67: C: Style/FormatStringToken: Prefer annotated tokens (like %<foo>s) over unannotated tokens (like %s).
{ pattern: '%d [%l] :: %m', date_pattern: '%Y/%m/%d %H:%M:%S' }
^^
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.
Looks like Rubocop issue is there
This PR is not actual anymore due to issue #267 |
#241