FAQ  •  Register  •  Login

Serviio.log - Notepad++ syntax highlighting

<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Sep 19, 2013 12:49 pm

Serviio.log - Notepad++ syntax highlighting

In attachment, you will find a UDL file that could be load by Notepad++ editor to support syntax highlighting for Serviio.log file.

- Open Notepad++
- select menu Language -> Define your language...
- click Import... button
- select ServiioLogUDL.xml file
- select ServiioLog on User language list
- close windows
- Open serviio.log file

ServiioLogUDLv1.5.xml
Serviio.log UDL file version 1.5 : add apostrophe, java.io.IOException
(7.24 KiB) Downloaded 1131 times

ServiioLogUDLv1.4.xml
Serviio.log UDL file version 1.4 : add a list of [category] keywords
(6.59 KiB) Downloaded 1035 times

ServiioLogUDLv1.3.xml
Serviio.log UDL file version 1.3
(5.33 KiB) Downloaded 993 times




_ Advanced user _
You can also edit the %USERPROFILE%\AppData\Roaming\Notepad++\userDefineLang.xml file and insert a new <UserLang>...<UserLang/> section from attachment
<<

iheartninjas

User avatar

Serviio lover

Posts: 53

Joined: Sun Dec 18, 2011 12:03 pm

Location: Greenville, SC

Post Thu Sep 19, 2013 2:59 pm

Re: Serviio.log - Notepad++ syntax highlighting

Wow this is great! I have been wanting something like this for a long time.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Fri Sep 20, 2013 12:04 am

Re: Serviio.log - Notepad++ syntax highlighting

Illico, love this (will make log files far easier to read) - didn't know this was available as a feature.

Am having an issue however. After a while everything in my log file is red. I have attached my log to demonstrate.

The issue is shown in line 307 - 309 : the 't triggers a red style which stays until the next 't. Looking at the language file Delimiter Style 2 is the culprit - is there any way to trigger this rule only if the opening and closing delimiter are on the same line?

<edit> Have found one way - using the Comment Line Style with a ' as the opening and closing delimiter - this limits the effect to the same line, but still doesn't cater for a single quote on a line (as in the word "don't"). Can you add spaces to the delimiters (eg " '" without the quotes) </edit>
Attachments
serviio.log
(146.71 KiB) Downloaded 916 times
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Sep 20, 2013 8:08 am

Re: Serviio.log - Notepad++ syntax highlighting

DenyAll wrote:Can you add spaces to the delimiters (eg " '" without the quotes) </edit>


I have just find this notepad++ feature at work, and for fun I tried with serviio.log...
I also noticed the problem with the ' character ( &apos; ).
I have not found a solution for the moment and adding spaces does not work. So I removed it.
I updated the xml file on first post.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Sep 20, 2013 10:27 am

Re: Serviio.log - Notepad++ syntax highlighting

I assume something similar could be done for SublimeText ;-)
<<

iheartninjas

User avatar

Serviio lover

Posts: 53

Joined: Sun Dec 18, 2011 12:03 pm

Location: Greenville, SC

Post Fri Sep 20, 2013 1:44 pm

Re: Serviio.log - Notepad++ syntax highlighting

zip wrote:I assume something similar could be done for SublimeText ;-)



+1 to this. I use SublimeText when log is too large for Notepad ++
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Sat Sep 21, 2013 9:28 am

Re: Serviio.log - Notepad++ syntax highlighting

Hi Illico - playing with this, but still haven't found a way to do the apostrophe/single quotes... but did play with another feature you may want to consider:

Folder and Default tab, Folding in code 2 style:
- Set the Open to 'Failed to retrieve online item information' including the single quotes
- Set the close to ... (three dots, no spaces or quotes)

This adds "folding" to the warnings regarding not finding online information. You can then use all Alt-0 to fold all these or Alt-Shift-0 to unfold them. There is a risk that the fold group doesn't end with ... but I didn't come across it in my log. ps. if this doesn't make sense, load my log from previous post and that should demonstrate it (lines 103-113 for example).
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sat Sep 21, 2013 10:37 am

Re: Serviio.log - Notepad++ syntax highlighting

DenyAll wrote:Hi Illico - playing with this, but still haven't found a way to do the apostrophe/single quotes...

Yes, I post on notepad++ forum, and we have to way for UDL version 3 for this feature...

DenyAll wrote:but did play with another feature you may want to consider:

Folder and Default tab, Folding in code 2 style:
- Set the Open to 'Failed to retrieve online item information' including the single quotes
- Set the close to ... (three dots, no spaces or quotes)

This adds "folding" to the warnings regarding not finding online information. You can then use all Alt-0 to fold all these or Alt-Shift-0 to unfold them. There is a risk that the fold group doesn't end with ... but I didn't come across it in my log. ps. if this doesn't make sense, load my log from previous post and that should demonstrate it (lines 103-113 for example).

Seems fine, but sometime manually play with 'Fold' and 'unfold' , lines become misaligned.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Oct 16, 2013 1:53 pm

Re: Serviio.log - Notepad++ syntax highlighting

Illico wrote:
DenyAll wrote:Can you add spaces to the delimiters (eg " '" without the quotes) </edit>

...
I also noticed the problem with the ' character ( &apos; ).
I have not found a solution for the moment and adding spaces does not work. So I removed it.
...

DenyAll,
I found a solution with &apos; character:
You can define Open Delimiter = '
You can define Close Delimiter = '
You can defining n't as Operator1 type. In this way apostrophe in the middle of the word can never trigger Delimiter start.



That could be fine now, if Zip could change the format of the log file, so that all file/media name appears between apostrophe.
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 71 and profile Flash player
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Shrek.2.2004.1080p.HDTV.x264-ESiR-Sample.mkv: FLV
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Shrek.2.2004.1080p.HDTV.x264-ESiR-Sample.mkv: FLV
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Shrek.2.2004.1080p.HDTV.x264-ESiR-Sample.mkv: FLV
2013-10-16 16:03:58,053 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 72 and profile Flash player
2013-10-16 16:03:58,054 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Sintel_DivXPlus_6500kbps.mkv: FLV
2013-10-16 16:03:58,054 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Sintel_DivXPlus_6500kbps.mkv: FLV
2013-10-16 16:03:58,054 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Sintel_DivXPlus_6500kbps.mkv: FLV

to
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 71 and profile Flash player
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 'Shrek.2.2004.1080p.HDTV.x264-ESiR-Sample.mkv': FLV
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 'Shrek.2.2004.1080p.HDTV.x264-ESiR-Sample.mkv': FLV
2013-10-16 16:03:58,051 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 'Shrek.2.2004.1080p.HDTV.x264-ESiR-Sample.mkv': FLV
2013-10-16 16:03:58,053 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 72 and profile Flash player
2013-10-16 16:03:58,054 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 'Sintel_DivXPlus_6500kbps.mkv': FLV
2013-10-16 16:03:58,054 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 'Sintel_DivXPlus_6500kbps.mkv': FLV
2013-10-16 16:03:58,054 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 'Sintel_DivXPlus_6500kbps.mkv': FLV
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Oct 16, 2013 8:11 pm

Re: Serviio.log - Notepad++ syntax highlighting

I can change that, do you need it only for this log entries? Or other file names too? You'd have to give me all the places you want the filenames quoted.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Oct 17, 2013 9:01 am

Re: Serviio.log - Notepad++ syntax highlighting

zip wrote:I can change that, do you need it only for this log entries? Or other file names too? You'd have to give me all the places you want the filenames quoted.

Thanks Zip, but I still have problems with some French series title with &apos; character, like C'est, L', etc. So the previous modification is not a 100% solution.
Do you think that double quote (") could be used instead? (I don't think that this character is used on file/series title in any language)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 17, 2013 11:12 am

Re: Serviio.log - Notepad++ syntax highlighting

Sure, remind me in the Beta stage pls
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun Oct 05, 2014 4:33 pm

Re: Serviio.log - Notepad++ syntax highlighting

zip wrote:Sure, remind me in the Beta stage pls


Do you think that it could be added to the next 1.5 version ?
<<

rscm

User avatar

Serviio newbie

Posts: 6

Joined: Mon Sep 21, 2015 9:55 pm

Post Mon Sep 21, 2015 10:04 pm

Re: Serviio.log - Notepad++ syntax highlighting

Hi
Thanks for the UDL, I use an alternative color theme on NP++. So I made a version that can look better with that theme (HotFudgeSundae)

Bye
Attachments
ServiioLogV1.5.1_HotFudgeSundae.xml.zip
NP++ UDL for HotFudgeSundae Syntax Color based on V1.5 from Illico + some updates
(1.98 KiB) Downloaded 753 times
<<

bobsmo

Serviio lover

Posts: 65

Joined: Thu Dec 20, 2012 12:06 pm

Post Sun Jan 03, 2016 10:56 pm

Re: Serviio.log - Notepad++ syntax highlighting

finally got around to installing this, very nice , +1.
<<

Rapper_skull

Serviio lover

Posts: 59

Joined: Wed Jul 09, 2014 5:36 pm

Post Fri Jul 01, 2016 9:39 am

Re: Serviio.log - Notepad++ syntax highlighting

There are still some issues with names containing apostrophes. Maybe escaping them with another one will solve the problem, like using double quotes.

EDIT: Also another problem are rows like this:
  Code:
DEBUG [MediaFileIndexer] Found file 'media.mkv', checking if it's already in the Library

Maybe you can replace "it's" with "it is".

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 4 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.