kapoorlakshya/screen-recorder

How to redirect the log into the required folder?

Rajagopalan-M opened this issue · 7 comments

There is a file named ffmepg.log is created in my root folder but I want to move this file into another folder, can I set up the path for this file like we can set up the path for watir.log file as Watir.logger.output = 'AppData/Logs/watir.log' ?

Yes, see the log parameter in the Advanced Options section of the readme.

Oops... Accidentally closed this. I'll close this ticket once you confirm it works.

You have given this

You can configure the logging level of the gem to troubleshoot problems:

ScreenRecorder.logger.level = :DEBUG

Also, refer to the ffmpeg.log file for details.

But I am asking how to set up the path for ffmpeg.log file?

That's the wrong section. Look one section above titled "Advanced Options" - https://github.com/kapoorlakshya/screen-recorder/blob/master/README.md#advanced-options

Specifically the log key in the example.

So I can write this

advanced = {

  log:      'recorder.log',

}

Beautiful, it works fine. Thanks. You close this issue now.

Great!