Commit graph

13 commits

Author SHA1 Message Date
Laurence a822d2ff7e
wip: use io copy instead for memory alloc 2024-04-08 11:13:31 +01:00
Laurence cbb817ef96
wip: changed my mind, we check when we check file size 2024-04-07 19:23:25 +01:00
Laurence 7032a438c3
wip: actually check the enabled flag on log rotate 2024-04-07 19:21:54 +01:00
Laurence 86668b1f92
wip: used return byte count instead of calling a conversion again 2024-04-07 17:19:40 +01:00
Laurence 656942a428
wip: improve context handling with creating a custom io writer struct which checks the context before attempting to write 2024-04-07 17:14:36 +01:00
Laurence 06e178cbdb
wip: even if the file has been rotated outside our control we should still compute the file size 2024-04-07 16:31:24 +01:00
Laurence 5570cb96fa
wip: me no english great 2024-04-07 16:03:10 +01:00
Laurence 9f685bbf0f
wip: update yaml dep 2024-04-07 16:02:26 +01:00
Laurence 69a6ba7603
wip: impl log rotation which checks on check append, however, this may cause some issues in slow systems as the mutex lock doesnt give up until the file is rotated, however, the plugin looks for context and will give up if the plugin broker decides its timeout and will retry once the plugin has pushed again 2024-04-07 15:45:59 +01:00
Laurence 434e18c42c
wip: the plugin should not handle it own data queue since the plugin process may timeout, so instead have a function that uses said context and loop whilst locking the filewriter this may not be the best way 🤷, however, I dont want multiple notifications to attempt to reopen the file if it has been rotated outside of the plugin context 2024-04-07 14:30:49 +01:00
Laurence 4b24c5c3d5
wip: remove redundant logrus formatter 2024-04-07 13:06:46 +01:00
Laurence 4f67510bdf
wip: ticker to 2 seconds and lower some log levels 2024-04-07 13:05:34 +01:00
Laurence f50700429c
wip: basic impl of file notification no log rotate but might now do it 🤷 2024-04-07 12:37:19 +01:00