Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Headers in csv file #47

Open
Anamika1911 opened this issue Oct 12, 2017 · 1 comment
Open

Headers in csv file #47

Anamika1911 opened this issue Oct 12, 2017 · 1 comment

Comments

@Anamika1911
Copy link

We are implementing logging in csv format using serilog. Is there a way to write headers in the file so that they are not repeated say if a service restarts?

@nblumhardt
Copy link
Contributor

Hi @Anamika1911 - there's no built-in way to achieve this that I'm aware of; Serilog has much better JSON support than CSV, I'd encourage you to take a look at https://github.com/serilog/serilog-formatting-compact if that's an option for you.

All the best,
Nick

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants