01-28-2013 03:52 AM
Hello,
I'm working on media player and I found extremely difficult to debug is as NowPlayingConnection and MediaPlayer are flooding log with a lot of useless logs.
Does anybody come with some solution how to turn these messages off?
I'm using
slog2info -w | grep -v '=>' | grep -v MmrContextNotifier | grep -v NowPlayingConnectionPrivate | grep -v MediaPlayerPrivate | grep -v 'NowPlayingConnection::setPosition' | grep -v 'MediaPlayer::position' | grep -v 'NowPlayingConnection'
but it far from to be perfect.
I would love to see some properties like debugLevel added into NowPlayingConnection and MediaPlayer.
01-28-2013 10:59 AM
I do something similar with a shell script I put in ~/bin/slog containing this, currently:
slog2info -w | sed -re '/default 0 |OrientationSupportPrivate|MediaPlayer|MmrContext|=> END/d;s/^.{7}(\S+) ([^.]+\.[^.]+\.[^.]+)\.\S+\s+(\S+)\s+(.*)/\1 \2 \3 \4/'
(That's all one line, in case it gets wrapped, and certain spaces are critical so do a straight copy/paste if you use it.)
There may be ways to shut it off, but as I believe it's a moving target (what we see with the next version will likely be changed again) I'm not really spending any time thinking about it for now. Just update your filtering as you see fit and carry on... if you type that long command line every time, of course, then that would get annoying. So.. don't. ;-)
01-28-2013 12:02 PM
01-28-2013 12:06 PM
01-28-2013 02:08 PM