Documentation ¶
Index ¶
Constants ¶
View Source
const ( StrftimeChar = "%" UnixTimestampFmt = "%s(%L)?" )
Variables ¶
This section is empty.
Functions ¶
func GetTimestamp ¶
GetTimestamp looks through the event map for something that looks like a timestamp.
It will guess at the key name or use the specified one if it is not an empty string. If unable to parse the timestamp, it will return the current time. The time field will be deleted from the map if found.
Types ¶
Click to show internal directories.
Click to hide internal directories.