You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But whenever i use Rails.logger.info("this is my log string"), in log files it comes like this
this is my log string
{"method":"GET","path":"/some-api","format":"json","controller":"controller-some","action":"ping","status":200,"duration":3.72,"view":0.41,"db":0.0,"transaction.id":null,"span.id":null,"trace.id":null,"params":{},"exception":null,"exception_object":null,"remote_ip":"127.0.0.1","@timestamp":"2019-11-26T09:53:12.184Z","@version":"1","message":"[200] GET /some-api"}
I want to append timestamp before all Rails.logger. entries.
The text was updated successfully, but these errors were encountered:
My lograge configuration look as below
But whenever i use
Rails.logger.info("this is my log string")
, in log files it comes like thisI want to append timestamp before all
Rails.logger.
entries.The text was updated successfully, but these errors were encountered: