Page 1 of 1

Curious about logfile management

Posted: 07 Apr 2016, 05:28
by ramsundaram
I'm wondering if there's a way by which I can parse the logfile for failures only, and delete the blocks for successful filebot processed files.

This is because, for me, the primary use of the log file is to identify failures and then resolve them.

Is anyone doing anything similar?

Re: Curious about logfile management

Posted: 07 Apr 2016, 07:01
by rednoah
1.
Grep is your friend.

2.
You can make the log less verbose by setting the log level:

Code: Select all

--log-level warning

Re: Curious about logfile management

Posted: 11 Apr 2016, 05:49
by ramsundaram
Thanks, RedNoah.

I'm aware of grep, but my regexp skills are not good enough to be able to match entire blocks of text based on the last line.

I'm trying out logging at warning level.

Thanks, once again.

Re: Curious about logfile management

Posted: 11 Apr 2016, 06:02
by rednoah
Surely you could just copy and paste a solution from the internet for such a generic problem. ;)

e.g.
http://stackoverflow.com/a/22221307/1514467