- render: function(logdata) {
- var loglines = logdata.trim().split(/\n/).map(function(line) {
- return line.replace(/^<\d+>/, '');
- });
+ pollLog: async function() {
+ const element = document.getElementById('syslog');
+ if (element) {
+ const log = await this.retrieveLog();
+ element.value = log.value;
+ element.rows = log.rows;
+ }
+ },
+
+ load: async function() {
+ poll.add(this.pollLog.bind(this));
+ return await this.retrieveLog();
+ },