mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
1b62d9d717
* - implement a global logbuffer - providerrs232 reduce log spam * logger add signal and start json push * implement logger notifier ... need some cleanup * imlement logview in webui - the layout stuff is basic atm and needs some tuning
25 lines
488 B
JavaScript
25 lines
488 B
JavaScript
|
|
$(document).ready(function() {
|
|
requestLoggingStart();
|
|
if (!loggingHandlerInstalled)
|
|
{
|
|
loggingHandlerInstalled = true;
|
|
$(hyperion).on("cmd-logging-update",function(event){
|
|
if ($("#logmessages").length == 0)
|
|
{
|
|
requestLoggingStop();
|
|
}
|
|
else
|
|
{
|
|
messages = (event.response.result.messages);
|
|
for(var idx=0; idx<messages.length; idx++)
|
|
{
|
|
msg = messages[idx];
|
|
$("#logmessages").html($("#logmessages").html()+"\n"+msg);
|
|
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|