4 Commits

Author SHA1 Message Date
han J
5c0e63c4ca
feat: rotate_file_logger supports periodic syncing (#103)
* add timer for roatet_file_logger

* add fsync and timer

* put sync task into log executor

* add doc

* rotate_file_logger support sync

- add timer to post sync_task

- add doc and example

* add readme.txt

* change head.h

* optimize code

* add release_notes

---------

Co-authored-by: hanjun <hanjun@agibot.com>
2024-11-15 17:40:21 +08:00
wtudio
acf57080c2
feat: update log examples & doc (#69) 2024-10-31 21:26:55 +08:00
han J
929a105bd0
log format (#57)
* log format

* Modify the logic of log formatting output

* Remove redundant parts.

* log format:

-Improve the log configuration documentation

-More flexible log formatting output structure

* log fotmat

- Use std::string instead of fmt to achieve formatted output,;

- add unit test

- add exception checking.

* Add estimated_size  & optimize unit tests

---------

Co-authored-by: hanjun <hanjun@agibot.com>
2024-10-31 19:39:35 +08:00
wtudio
d2d7b0495d update v0.8.0 2024-09-23 16:01:31 +08:00