ukdtom / WebTools.bundle

WebTools is a collection of tools for Plex Media Server. Like the Unsupported AppStore (UAS)
https://forums.plex.tv/discussion/288191
Mozilla Public License 2.0
1.3k stars 170 forks source link

Logs: Triggers color change incorrectly #289

Closed ukdtom closed 7 years ago

ukdtom commented 7 years ago

See forum thread: https://forums.plex.tv/discussion/comment/1411538/#Comment_1411538

creoludifico commented 7 years ago

Should have been fixed with V3

ukdtom commented 7 years ago

Not fixed. Created an entry like: 2017-04-13 12:57:03,240 (7f32ce321700) : INFO (webSrv:127) - Tester om ERROR CRITICAL EXCEPTION fanges af log viewer

It needs to trigger on like : ERROR Note the colon in front

creoludifico commented 7 years ago

image

creoludifico commented 7 years ago

What's wrong?

ukdtom commented 7 years ago

You are triggering on the msg itself. You should trigger on what's in front of the actual msg.

Like if you have a line like: 2017-04-30 11:57:23,071 (7fa9a8496700) : CRITICAL (runtime:709) - Private handlers are no longer supported; couldn't register >

Trigger part is: 2017-04-30 11:57:23,071 (7fa9a8496700) : CRITICAL (runtime:709)

msg part is: Private handlers are no longer supported; couldn't register >

With above, it'll not flag a scanner log for a movie named "Errors on MovieLand", if an info line for that is in the log

/T

creoludifico commented 7 years ago

There are so many different patterns on these log files. I've spliced the string on " - " So i'll only look at the part before the space, the hyphen and the space. If the log file change in the future this wont work. Lets hope ;)

ukdtom commented 7 years ago

Absolutely valid workaround, IMHO