cloudfoundry / lager

An opinionated logger for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to format log timestamp?

qibobo opened this issue · comments

logger now just output timestamp, how to format the timestamp string to a human readable time string , like "2017-09-07 15:00:00 234"?

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/150876904

The labels on this github issue will be updated when the story is started.

Hi, @qibobo,

There's no explicit configuration that changes lager to record the timestamp in something more human-readable, such as ISO 8601 format, but you could create a new implementation of the Sink interface that does so.

Best,
Eric, CF Diego PM