projects
/
project
/
luci2
/
ui.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e57db2cea797facbd1c878ed3408b06d971351a1
[project/luci2/ui.git]
/
luci2
/
htdocs
/
luci2
/
view
/
status.syslog.js
1
L.ui.view.extend({
2
title: L.tr('System Log'),
3
refresh: 5000,
4
execute: function() {
5
return L.system.getSystemLog().then(function(log) {
6
var ta = document.getElementById('syslog');
7
var lines = log.replace(/\n+$/, '').split(/\n/);
8
9
ta.rows = lines.length;
10
ta.value = lines.reverse().join("\n");
11
});
12
}
13
});