RafaGago / mini-async-log

Non bloated asynchronous logger
Other
221 stars 20 forks source link

QUESTION: How to get current file name and start with a new file #21

Closed bellekci closed 7 years ago

bellekci commented 7 years ago

Is there an easy way to get the current log file name?

How can I force to close the current file and start with a new file?

Many thanks!

bellekci commented 7 years ago

I have brought get_current_filename() function from backend up-to frontend. This is how I get the current file name.

I also force to rotate to a new file with following command, (again with access from frontend)

bool non_idle_slice_and_rotate_if(bool force = false)

bellekci commented 7 years ago

I can add PR if anyone is interested. I am closing the issue for now.