Some logging functions for MicroPython in combination with syslog-server
Project description
Eydam-Prototyping: ep_logger
Deutsche Version hier / German version here
Library, to send log messages from an IoT-Device running MicroPython to a syslog-server. How to setup a syslog-server in combination with Telegraf and Grafana is described here: here
The messages will be send in ietf-syslog-protocol-23-format.
Example:
# Syslog-Server (192.168.178.100) is listening on 514 (UDP)
import ep_logging
logger = ep_logging.logger("192.168.178.100", port=514)
logger.notice("Test")
This Code would produce the following message:
<85>1 2021-01-20T20:33:17.0Z esp32 logger - - Test
-- - ---------------------- ----- ------ - - ----
| | | | | | | +--- message
| | | | | | +------- MSGID (=None)
| | | | | +--------- PROCID (=None)
| | | | +------------- appname
| | | +-------------------- hostname
| | +----------------------------------- timestamp
| +----------------------------------------------- version (always 1)
+------------------------------------------------- facility + servity
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for micropython_eydam-prototyping_logging-0.0b5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0115be766445d0c3b7af62b9398761fbb630067ef4014257e8045e16a6ac9de2 |
|
MD5 | 557d99e164848c4a26c2282c170b7fbe |
|
BLAKE2b-256 | dc4a97a04fb6754ea19e37411f454edf566b867cee8f22566291f9fe890959f8 |
Close
Hashes for micropython_eydam_prototyping_logging-0.0b5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7292541cb41797d531bd51a10f489be6a85485a174fdf5e14ff2ccfb1c4d44ff |
|
MD5 | 082bbe2f1b37e7d787e493daed105127 |
|
BLAKE2b-256 | 5a8cc8d2d88cac0f0023c223708ff8f347de30cf534879592b51cac36e3aabe4 |