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.0b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d14f3b00a4be136b59e9b9d3523f77a218e43b82c9f61b171fe08573b9fd640 |
|
MD5 | ac08b1c26bb7768c76cd800823afe70e |
|
BLAKE2b-256 | 417a8d8de98f17e87c9f05fde4a7babb804e319a0aec2521fdfa31e0cfce0b0f |
Close
Hashes for micropython_eydam_prototyping_logging-0.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02680f25fbb9aea15037c18d812f71fe8b7c41a8b034898b44994664696c0b7e |
|
MD5 | c293408f75b0f8b409b23d9d9e3a0cf5 |
|
BLAKE2b-256 | 63eaf17934d3a7a89eb46e7990e5a2df93bc9c269218ff2590b6747a9b562054 |