Curious about logfile management

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
ramsundaram
Posts: 24
Joined: 13 Oct 2012, 18:32

Curious about logfile management

Post 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?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Curious about logfile management

Post 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
:idea: Please read the FAQ and How to Request Help.
ramsundaram
Posts: 24
Joined: 13 Oct 2012, 18:32

Re: Curious about logfile management

Post 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.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Curious about logfile management

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply