Reset log file while running

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Reset log file while running

Postby sjames1958 » Wed Apr 28, 2021 12:56 pm

Is it possible to reset the cef log file while running?
we want to capture the existing log file at a certain point in the app and start a new one with a new filename.
Is this possible?
Does CEF support log rolling? Opening a new log file after a certain size has been reached?
Posts: 39
Joined: Sun Jun 22, 2014 7:41 am

Re: Reset log file while running

Postby magreenblatt » Wed Apr 28, 2021 1:26 pm

CEF does not support this internally, but you can use a third-party tool.
Site Admin
Posts: 11084
Joined: Fri May 29, 2009 6:57 pm

Re: Reset log file while running

Postby HarmlessDave » Thu Apr 29, 2021 12:23 pm

It might be easiest to copy the console.log, debug.log to other named files like console-2021-04-29.log then truncate the main console and debug files back to empty. That can be done with a function inside your application and avoids any problems with file locking.
Posts: 316
Joined: Fri Jul 11, 2014 2:02 pm

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 18 guests