WebStatus:add syslog count/fail, show only enabled services

This commit is contained in:
MichaelDvP
2022-06-03 13:39:26 +02:00
parent 794b3c0471
commit 1609b76f0a
4 changed files with 58 additions and 21 deletions

View File

@@ -77,6 +77,18 @@ class System {
bool heartbeat_json(JsonObject & output);
void send_heartbeat();
bool syslog_enabled() {
return syslog_enabled_;
}
unsigned long syslog_count() {
return syslog_.message_count();
}
unsigned long syslog_fails() {
return syslog_.message_fails();
}
void led_init(bool refresh);
void network_init(bool refresh);
void button_init(bool refresh);