Jump to content

Playback Reporting


Recommended Posts

rbjtech

Hi @TeamB

First of all - amazing Plugin - thanks very much for this, I use it daily. :)

Could I request one small update to the logging in the Emby main log though please ?

Currently, the 'report' itself does not conform to the logging standard, and thus you get all the watched items in the logging 'class' when you try and filter the logs.

I believe you simply need to insert a TAB before you write the report detail - then it is classed as a continuation of the previous log entry.

Let me show you an example if I may :

play1.PNG.1430e5c28a611e1d496edd380aa0a673.PNG

So for the highlighted line - you will see it has multiple line content (shown in the grey section underneath).  I have gone onto the log and manually added a' TAB' infront of the 'report' items - thus the logging software thinks it is part of the previous log entry - which it is.

On the entries I have not added a tab to - these are classed as 'new entries' on the log - and thus they break the log parsing, and show as individual log entries - which I can't filter on etc.

I've attached the actual example log (with annotations) so you can hopefully see how the above has been created.

Please let me know if you need any further detail or examples.

Many Thanks !

embyserver - playback_reporting_test.txt

Edited by rbjtech
Link to post
Share on other sites
TeamB

the log info is not meant to be parse-able, it is for tracking and finding issues. I just dump this info out to the log before sending the notification, it is just so you can see what would be in the notification.

I have no control over the Emby server logger and how it formats the output, this could change at any time.

What are you using this info for?

Link to post
Share on other sites
rbjtech

Hi - thanks for getting back to me.

The emby log uses standard log formatting - so it is fully parse-able by logging software - it has a date, type, class and message - pretty standard industry stuff.

You plugin does not conform to the logging standards and just dumps text into the log - thus if I want to filter Class by 'App' (for example) then I get a load of other stuff picked up as 'Class' when it is not - ie names of Recorded Items ..

play2.PNG.46946038fcf3c27293e4c7a9532e5bc2.PNG

If you don't have control of what is being written to the log - then would it be possible to just prefix each line with a Tab before writing it - that will achieve the same result - and presumably any reports or notifications will just be indented by a Tab ? 

Either that, or have an option not to dump the 'report' contents to the emby log - just keep the proper log entries - that would also work.

Thanks !

Edited by rbjtech
Link to post
Share on other sites
rbjtech
3 minutes ago, TeamB said:

Ok, i will fix the logging to produce a single ine in debug mode only

Great - Many thanks !

Link to post
Share on other sites
rbjtech

Thanks @TeamB - I just loaded, so need to wait for the end of day report via a Notification - thanks for the update 👍

edit - All good :).  My log filter now only includes the correct Classes.   Thanks again.

Edited by rbjtech
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...