Skip to content
This repository was archived by the owner on May 25, 2018. It is now read-only.
This repository was archived by the owner on May 25, 2018. It is now read-only.

Time format in log entries #1

@dcosson

Description

@dcosson

Looks like the time format is hardcoded in the Process() function https://github.com/moovweb/golog/blob/master/processor.go#L52-52

I'd like to log the timestamp in a simpler to parse (and sort) format - would you accept a pull request that adds another field to the LogProcessor for time format and then calls time.Format() with that string?

I was thinking that providing an empty string (or the string "default" or somthing) would use the current behavior with Sprintf, since apparently that's slightly faster than time.Format

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions