diff options
| author | Christine Dodrill <me@christine.website> | 2020-09-27 12:35:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-27 12:35:24 -0400 |
| commit | f106c2c9d23c9c12a88b5a73f704f4be5c455926 (patch) | |
| tree | 6b3888c1bcf2f8c379acbc897bab7f3fa7b9c8ca /examples/logger_test.rs | |
| parent | e460ebdcbee67224a3f9872b0a59e6f2733b6861 (diff) | |
| download | xesite-f106c2c9d23c9c12a88b5a73f704f4be5c455926.tar.xz xesite-f106c2c9d23c9c12a88b5a73f704f4be5c455926.zip | |
go-stdlib-rust post (#215)
Diffstat (limited to 'examples/logger_test.rs')
| -rw-r--r-- | examples/logger_test.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/logger_test.rs b/examples/logger_test.rs new file mode 100644 index 0000000..f917d66 --- /dev/null +++ b/examples/logger_test.rs @@ -0,0 +1,11 @@ +use log::{debug, error, info, trace, warn}; + +fn main() { + pretty_env_logger::init(); + + trace!("starting main"); + debug!("debug message"); + info!("this is some information"); + warn!("oh no something bad is about to happen"); + error!("oh no it's an error"); +} |
