Repository navigation
Structured logs: every record names its kind in an event field and carries its context, so logs can be filtered and
aggregated without parsing messages (e.g. event:serial_error in VictoriaLogs). The events and their fields are listed
in the monitoring guide.
Added
eventfield on the library's log records:packet_received,packet_sent,teach_in,base_id_received,
base_id_timeout,communicator_started/stopped,client_connected/disconnected,serial_error,
processing_error,header_crc_error,data_crc_error,malformed_packet,unknown_profile,unknown_field...- Their context as fields:
base_id;transport,port,hostandclientfor the transports;errorfor serial
port errors (also in the message, it was lost);lengthof a corrupted packet;dataandoptional(hex) of a
malformed one, to replay it;eepandcommandof an unknown profile;shortcutof an unknown field;outcomeof
a teach-in. - Packet records also carry
destination,status,repeater_countandeep. SerialCommunicator.port, the serial port it was opened on.
Changed
- The
packet_typeandrorgfields of log records are enum names (RADIO_ERP1,VLD) instead of integers, as in
packet.to_dict(): log queries on their numeric values need updating. - The communicators' started/stopped messages name the port, and the TCP client messages the client's address.