Closed smirnoff410 closed 2 months ago
If you can submit a PR, I can look at this properly and see about getting it merged 👍
I don't have any permission for create and push new branches. Maybe I doing something wrong? Can you help me?
Answer from git remote: Permission to cocowalla/serilog-sinks-file-archive.git denied to smirnoff410. fatal: unable to access 'https://github.com/cocowalla/serilog-sinks-file-archive.git/': The requested URL returned error: 403 Pushing to https://github.com/cocowalla/serilog-sinks-file-archive.git
Ah, you have to make a fork first, then push your changes to the fork. Once you're ready, you can then create a pull request (PR) from your fork. A few links to help you get started:
Good luck with your first PR! 🍀
It's was awesome! Thx for guide :) Check please my PR
I'm saving logs in file with names log_001.txt, log_002.txt, log_003.txt etc. Serilog auto generate files with suffix _001 and when files count more then 1000 hooks not working correctly This behavior because comparing digital filename inside string
ArchiveHooks.cs Line: 123
Test case:
This behavior because OrderByDescending can't correct compare string _log999.txt.gz and _log1000.txt.gz ArchiveHook create archive _log1000.txt.gz but after delete it
I think compare filename length is solution in class LogFileComparer
LogFileComparer full code
Test code