Skip to content

Custom sink example? #865

Closed
Closed

Description

I am considering to use glog instead a lot of custom code, but I cannot se from the docs how to achieve the following:

  • user shall select to either log to console or file (not both)
  • file should have encoded each line as a JSON, to be then be piped to a logging service.

I see from the code that glog support custom sinks, but I cannot find an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions