| Crates.io | qlog-rs |
| lib.rs | qlog-rs |
| version | 0.5.0 |
| created_at | 2025-04-02 00:49:45.915918+00 |
| updated_at | 2025-05-17 15:20:42.475093+00 |
| description | Library that allows logging qlog events |
| homepage | |
| repository | https://github.com/DannyG-1952723/qlog-rs |
| max_upload_size | |
| id | 1615820 |
| size | 140,803 |
qlog-rs is a library that allows you to log qlog events in your network application.
The qlog structure is based on IETF draft 11 of the specification (latest version at the time of writing).
All supported protocols are behind a feature, so include all the needed protocols in the feature list.
Supported file types:
.sqlog (JSON text sequences)Supported protocols:
quic-10)moq-transfork)Call the following function in your application to start the log file with some file details (title, description...).
QlogWriter::log_file_details(...);
When you want to generate logs, run your application with the QLOGFILE environment variable, nothing will get logged if this variable isn't specified.
QLOGFILE="qlog_file.sqlog" cargo run --bin your-application
You can use this library if you're implementing your own version of a network protocol (e.g., a QUIC implementation) and want to support logging (if the protocol is supported). Here's an example for QUIC (draft 10).
let event = Event::quic_10_connection_started(local, remote);
QlogWriter::log_event(event);