Skip to content

Add option to enable logrus JSON output #286

Closed

Description

@avinson

In order to easily parse logs for metrics/aggregation, we want them in JSON format. Perhaps an environment variable could be used to control the behavior as you probably don't want JSON output by default (difficult for development purposes). Seems to be pretty easy to enable it:

log.SetFormatter(&log.JSONFormatter{})

Whatever the default JSON format from logrus is probably fine for now.

Activity

  1. added this to the milestone on Mar 23, 2015
  2. self-assigned this
    on Mar 23, 2015
  3. modified the milestones: , Registry/2.0 on Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions