Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Foobar2000 console log doesn't contain timestamp (Read 2353 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Foobar2000 console log doesn't contain timestamp

I want use consloe log file to record my playback history ,
but it doesn't contain timesamp .

Foobar2000 console log doesn't contain timestamp

Reply #1
i have a workaround - you can add a WSH panel mod panel to your layout and paste this code into it. it will write the time and artist/title to the console when a new track is started.

either hide it in it's own tab or resize it so it's barely visible. get the component here: http://code.google.com/p/foo-wsh-panel-mod/downloads/list

Code: [Select]
var ww = 0;
var wh = 0;

function on_playback_new_track() {
    var now = new Date();
    var text = fb.TitleFormat("%artist% - %title%").Eval();
    fb.trace(now.toTimeString() +  ": " + text);
}

function on_size() {
    ww = window.Width;
    wh = window.Height;
}

function on_paint(gr) {
    //draw background same colour as splitter so it merges in when resized small
    gr.FillSolidRect(0, 0, ww, wh, utils.GetSysColor(15));
}

Foobar2000 console log doesn't contain timestamp

Reply #2
thank you very much.

 

Re: Foobar2000 console log doesn't contain timestamp

Reply #3
I'd just like to say I've used the above instructions to add timestamps to my console log.  Thank you.
It's your privilege to disagree, but that doesn't make you right and me wrong.