Skip to content

Make "ts" and "level" values optional #5

Open
@AntonPetrov83

Description

@AntonPetrov83

Hi!

In my case I use the Serilog.Sinks.Grafana.Loki sink to send logs to Grafana Loki.

This sink uses a Loki API to send records and it sends timestamps as a standalone value according to the API specification. Duplicating timestamps in logs with ts is useless and makes logs bigger.

I suggest making ts and level values optional through configuration. I can make a PR for that if you wish.

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