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.0b4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39e24417cc6cceaa1833268cca1d9bc142d5115fd8cc7da706e88757d89d19d0 |
|
MD5 | 349ca91cb1321f214c9aca6a51dea0e6 |
|
BLAKE2b-256 | 14f74949d34afc3d6f585bc7c793cdad97b1fe39a84274a2d69f8f81b5965b06 |
Close
Hashes for micropython_eydam_prototyping_logging-0.0b4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd901586321b97dc9e54b7eb2a9b2d033a44f16ed229170040aad87b13e0e15 |
|
MD5 | 6f42351508a0bfb5b017723087dbc394 |
|
BLAKE2b-256 | 276fe7259bde6df76f385e29119c47d333dce23155cc2b6aaed8e48ef5193d9f |