kapoorlakshya / screen-recorder

A Ruby gem to video record and take screenshots of your desktop or specific application window. Works on Windows, Linux, and macOS.
MIT License
192 stars 17 forks source link

How to redirect the log into the required folder? #87

Closed Rajagopalan-M closed 4 years ago

Rajagopalan-M commented 4 years ago

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' ?

kapoorlakshya commented 4 years ago

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

kapoorlakshya commented 4 years ago

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

Rajagopalan-M commented 4 years ago

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?

kapoorlakshya commented 4 years ago

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.

Rajagopalan-M commented 4 years ago

So I can write this

advanced = {

  log:      'recorder.log',

}
Rajagopalan-M commented 4 years ago

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

kapoorlakshya commented 4 years ago

Great!