Skip to content

A compile-time toggle wrapper for the log crate

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

recatek/togglog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

togglog

A compile-time toggle wrapper for the log crate.

Add togglog to your dependencies as if it was the log crate:

[dependencies]
log = { version = "0.1", package = "togglog" }

and enable it via features:

[features]
enable_log = ["log/enabled"]

then, in your code, use log macros normally:

if bad_thing {
    log::error!("bad thing!");
}

To compile out all logging, disable the log/enabled feature.

License

This library may be used under your choice of the Apache 2.0 or MIT license.

About

A compile-time toggle wrapper for the log crate

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages