Crates.io | hclog |
lib.rs | hclog |
version | 0.1.0 |
created_at | 2025-05-20 13:53:49.459882+00 |
updated_at | 2025-05-20 13:53:49.459882+00 |
description | A high configurable logging library for Rust |
homepage | |
repository | https://github.com/ionos-cloud/hclog |
max_upload_size | |
id | 1681458 |
size | 162,703 |
hclog stands for highly configurable logging library for Rust.
hclog is compatible with rustc >= 1.74.1 (MSRV).
hclog is designed and intended to be as flexible and configurable as possible.
hclog allows you to use a fine granular logging with Loglevels compatible to the unix syslog. Instead of a single DEBUG Stage hclog allows you to use 10 different DEBUG level.
The generated logline can be configured depending on your needs and may include things like Rust module-path, filename, linenumber or the function name. This options can be set on intialization of the library or on demand.
A complete documentantion is available at docs.rs.
[dependencies]
hclog = "0.1.0"
hclog_macros = "0.1.0"
# with the "derive" feature you can use the macros directly from hclog
hclog = { version = "0.1.0", features = ["derive"] }
The hclog_macro crate provides a #[derive(HCLog)]
procmacro to be used with
(currently only) enum declarations to derive all required traits.
All log calls are encapsulated in declarative macros like lE
, lI
or lD1
We take security seriously. Please read our security policy for information on how to report security issues.