borntyping/rust-simple_logger

Error: use of undeclared crate or module `log`

ExtSolTech opened this issue · 1 comments

Hi there,

I got a following error: use of undeclared crate or module log

here is my toml file:
image

here is my test code:
image

an here is the error message:
image

Can you give any idea to me what i missed?

You also need to depend on the log crate, which provides the log::warn! macro and others.

[dependencies]
log = { version = "^0.4.14", features = ["std"] }
simple_logger = "2.1.0"