Update examples

pull/1/head
sgoudham 3 years ago
parent 6961b6844d
commit deaab37239
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -22,18 +22,15 @@ And much more to come... soon™!
## Quick Start ## Quick Start
```rust ```rust
use rall::{SimpleLogger, Level}; use rall::{debug, error, fatal, info, trace, warn};
// Create Default SimpleLogger
let mut logger = SimpleLogger::default();
// Log Out To Standard Output // Log Out To Standard Output
logger.log(Level::TRACE, "My Best Friend Hazel :D"); trace!("My Best Friend Hazel :D");
logger.log(Level::DEBUG, "My Best Friend Hazel :D"); debug!("My Best Friend Hazel :D");
logger.log(Level::INFO, "My Best Friend Hazel :D"); info!("My Best Friend Hazel :D");
logger.log(Level::WARN, "My Best Friend Hazel :D"); warn!("My Best Friend Hazel :D");
logger.log(Level::ERROR, "My Best Friend Hazel :D"); error!("My Best Friend Hazel :D");
logger.log(Level::FATAL, "My Best Friend Hazel :D"); fatal!("My Best Friend Hazel :D");
``` ```
### Windows Output ### Windows Output
@ -48,4 +45,4 @@ logger.log(Level::FATAL, "My Best Friend Hazel :D");
I'm still incredibly early in my Rust journey and so I wanted to get comfortable and try to pick my own brain about I'm still incredibly early in my Rust journey and so I wanted to get comfortable and try to pick my own brain about
exposing different API's in a Rust crate. I hope to expose an intuitive and easy to understand API design that users can exposing different API's in a Rust crate. I hope to expose an intuitive and easy to understand API design that users can
instantly get started with. instantly get started with.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Loading…
Cancel
Save