mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-03-25 08:55:47 +00:00
add datetime parameter to lograge formatter
This commit is contained in:
parent
d4cc3e2946
commit
fdbbf8a97b
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ module GrapeLogging
|
||||||
severity: severity,
|
severity: severity,
|
||||||
duration: time[:total],
|
duration: time[:total],
|
||||||
db: time[:db],
|
db: time[:db],
|
||||||
view: time[:view]
|
view: time[:view],
|
||||||
|
datetime: datetime.iso8601
|
||||||
}.merge(data)
|
}.merge(data)
|
||||||
::Lograge.formatter.call(attributes) + "\n"
|
::Lograge.formatter.call(attributes) + "\n"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue