Simpler logs -- user listening history?
I like the logging aspect of Subsonic, but it seems a bit complicated/messy to try to just figure out who's played what. For example, here's some entries that indicates user "jdoe" listened to the songs "Lilac Wine" and "Mojo Pin" by Jeff Buckley. It takes 3 lines for each song: one to show that a user started a stream, two to show which song, and three to show the user stopped the stream:
[2009-08-20 16:49:22,888] INFO StreamController - Starting stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
[2009-08-20 16:49:22,889] INFO PlaylistInputStream - Opening new song 1994 - Grace/04 - Buckley, Jeff - Lilac Wine.mp3
[2009-08-20 16:49:32,491] INFO StreamController - Stopping stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
[2009-08-20 16:51:22,888] INFO StreamController - Starting stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
[2009-08-20 16:51:22,889] INFO PlaylistInputStream - Opening new song 1994 - Grace/04 - Buckley, Jeff - Mojo Pin.mp3
[2009-08-20 16:51:32,491] INFO StreamController - Stopping stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
That's a lot of messy text to plow through just to get a "user listening history".
What I'd like to see is, instead of all that, have a logfile that simply has this:
[2009-08-20 16:49:32] jdoe@111.222.333.444 played 1994 - Grace/04 - Buckley, Jeff - Lilac Wine.mp3
[2009-08-20 16:51:32] jdoe@111.222.333.444 played 1994 - Grace/04 - Buckley, Jeff - Mojo Pin.mp3
Much easier to read, right?
This seems like a pretty reasonable and, I'd think, common request of a Subsonic logging system. Would make it a whole heck of a lot easier to go back and see who listened to what. Is this possible at all, or has anyone found a way to do it? Is this a reasonable feature request that other folks would like to see as well?
Cheers!
Supra92
[2009-08-20 16:49:22,888] INFO StreamController - Starting stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
[2009-08-20 16:49:22,889] INFO PlaylistInputStream - Opening new song 1994 - Grace/04 - Buckley, Jeff - Lilac Wine.mp3
[2009-08-20 16:49:32,491] INFO StreamController - Stopping stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
[2009-08-20 16:51:22,888] INFO StreamController - Starting stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
[2009-08-20 16:51:22,889] INFO PlaylistInputStream - Opening new song 1994 - Grace/04 - Buckley, Jeff - Mojo Pin.mp3
[2009-08-20 16:51:32,491] INFO StreamController - Stopping stream jdoe@111.222.333.444:1262 (Mozilla/5.0 (Windows; U; Windows N
T 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5)
That's a lot of messy text to plow through just to get a "user listening history".
What I'd like to see is, instead of all that, have a logfile that simply has this:
[2009-08-20 16:49:32] jdoe@111.222.333.444 played 1994 - Grace/04 - Buckley, Jeff - Lilac Wine.mp3
[2009-08-20 16:51:32] jdoe@111.222.333.444 played 1994 - Grace/04 - Buckley, Jeff - Mojo Pin.mp3
Much easier to read, right?
Cheers!
Supra92