diff --git a/Cargo.toml b/Cargo.toml index 15d36b9..ecec38a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,5 +22,12 @@ iso14443 = {path = "../iso14443"} default = [] std = ["logging/std"] +log-all = [] +log-none = [] +log-info = [] +log-debug = [] +log-warn = [] +log-error = [] + [patch.crates-io] heapless = { git = "https://github.com/nicolas-solokeys/heapless", branch = "bytebuf" } diff --git a/src/dispatch.rs b/src/dispatch.rs index dfc1f68..e156d3f 100644 --- a/src/dispatch.rs +++ b/src/dispatch.rs @@ -25,7 +25,7 @@ pub enum InterfaceType{ Contactless, } -use logging; +use crate::logger::info; use interchange::Responder; @@ -206,7 +206,7 @@ impl ApduDispatch Ok(AppletResponse::Defer) => {} Err(status) => { - logging::info!("applet error").ok(); + info!("applet error").ok(); use InterfaceType::*; match self.current_interface { Contactless => diff --git a/src/lib.rs b/src/lib.rs index 6777f33..3671449 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,3 +2,5 @@ pub mod applet; pub mod dispatch; + +logging::add!(logger); \ No newline at end of file