Log: Tail possible
Moderators: grovkillen, Stuntteam, TD-er
Log: Tail possible
Is it possible to get the x-lines (like tail) from the ESPEasy-log via web-interface ?
I've no syslog-server and if I open the log via the tools page, I see only new events and not the events some seconds before.
For troubleshooting it would be better to cache a few lines and show the cached events in front of the new ones.
I've no syslog-server and if I open the log via the tools page, I see only new events and not the events some seconds before.
For troubleshooting it would be better to cache a few lines and show the cached events in front of the new ones.
Re: Log: Tail possible
The log level for the web log view is dynamic.
This means even though you set it to "info" (or whatever level other then "none"), it will consider it as set to "none" unless the JSON for the web log has been queried in the last N minutes.
When creating the log entries, it is also checked to see if the log level is active for that output and if not, it will not even generate the logs.
So no, unless you have polled the web log viewer in the last N minutes, there simply is no older log entry for the web log viewer.
Later I plan on keeping the same buffer for all log outputs, but right now we don't have it.
Also with a shared buffer object, the entries should also be deleted as soon as they are read by all "subscribed" readers, or timeout.
This means even though you set it to "info" (or whatever level other then "none"), it will consider it as set to "none" unless the JSON for the web log has been queried in the last N minutes.
When creating the log entries, it is also checked to see if the log level is active for that output and if not, it will not even generate the logs.
So no, unless you have polled the web log viewer in the last N minutes, there simply is no older log entry for the web log viewer.
Later I plan on keeping the same buffer for all log outputs, but right now we don't have it.
Also with a shared buffer object, the entries should also be deleted as soon as they are read by all "subscribed" readers, or timeout.
Re: Log: Tail possible
Ok, than I need another solution to catch my sporadic problem.
Re: Log: Tail possible
Well, you can open an extra browser-tab with the log, and do your action(s) in the initial tab, the log-update should continue
/Ton (PayPal.me)
Re: Log: Tail possible
Yes, but the error appears only every few days...
and a 'tail' like solution should display the log-entrys after a boot sequence
and a 'tail' like solution should display the log-entrys after a boot sequence

- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Log: Tail possible
You could use a computer with tftpd64 as a standalone exe which serves as a log server:
https://github.com/peacepenguin/tftpd64/releases
https://github.com/peacepenguin/tftpd64/releases
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Log: Tail possible
What kind of error do you have which happens so sporadically?
Re: Log: Tail possible
I want to catch info's (date, time, duration) from a hall-sensor, whose binary signal is sporadic (2-3 a month) wrong.
But if I recognize the wrong signal, this is within a few minutes, the web-log didn't help, if it wasn't open before.
A syslog-server or the MQTT-log is sometimes only a little help, because the WLAN-Connection isn't always connected.
Don't worry, it was just an idea to buffer some (the newest) events.
But if I recognize the wrong signal, this is within a few minutes, the web-log didn't help, if it wasn't open before.
A syslog-server or the MQTT-log is sometimes only a little help, because the WLAN-Connection isn't always connected.
Don't worry, it was just an idea to buffer some (the newest) events.
Re: Log: Tail possible
How do you read the Hall sensor?
Re: Log: Tail possible
The Hall sensor (KY-024, https://www.az-delivery.de/products/hall-sensor-modul) has a 3.3V TTL output and is connected to a GPIO-pin from the ESP. Very simple...
Who is online
Users browsing this forum: No registered users and 16 guests