Closed sommmen closed 3 years ago
@sommmen you need to implement IDataProvider
interface for the file sink. Please check out other providers to see how they are implemented.
There are several issues that need to be considered:
Hiya, Thanks - seems solid advice.
When I have some time I may check around i just cloned the repo. Perhaps this is just not a pragmatic approach - I also realized i have log files for my Server and my seperate workerservice app so i'd even have to have an option to aggregate those.
Please share your thoughts and finding with me so we could implement the file provider together. Looking forward to hearing from you.
Please share your thoughts and finding with me so we could implement the file provider together. Looking forward to hearing from you.
Hiya - well i'll be working on this in my free time a bit and as part of a project for my company, quite busy atm, so i won't be able to just pour in a good weekend of development i'm afraid. Anyhow i'll fiddle around a little bit now. I just cloned the repo locally and made a FileDataProvider - but i'm unfamiliar with how contributing with github works. Should I fork the repo and make a PR at the end or can i make a branch on the main repo? I'm used to just creating a feature branch and then merging that into master at some point.
dev
branch
Hiya,
This seems exactly what a was looking for. Only I have a File sink setup instead of sql. Would it be feasible to implement a file-based provider for serilog-ui?
An excerpt of my log file;
The logging config is as follows:
I could of course change the template to something that would be easier to parse. I'd just like your opinion if something like this would be feasible and perhaps I take a crack at it.
Adding another provider for sql server for a fancy log viewer seems a bit too much consider the scope of my project. Although perhaps that's a common solution.
In anyway I want to keep file based logging.