Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonynguyen/loglog
A simple and usable logger.
https://github.com/anthonynguyen/loglog
logging rust
Last synced: 12 days ago
JSON representation
A simple and usable logger.
- Host: GitHub
- URL: https://github.com/anthonynguyen/loglog
- Owner: anthonynguyen
- License: mit
- Created: 2017-08-15T15:10:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T00:34:55.000Z (over 7 years ago)
- Last Synced: 2024-12-07T21:44:17.325Z (about 1 month ago)
- Topics: logging, rust
- Language: Rust
- Homepage: https://docs.rs/loglog/
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `loglog`
[![loglog on Travis CI][travis-image]][travis]
[![loglog on crates.io][cratesio-image]][cratesio]
[![loglog on docs.rs][docsrs-image]][docsrs][travis-image]: https://travis-ci.org/anthonynguyen/loglog.svg?branch=master
[travis]: https://travis-ci.org/anthonynguyen/loglog
[cratesio-image]: https://img.shields.io/crates/v/loglog.svg
[cratesio]: https://crates.io/crates/loglog
[docsrs-image]: https://docs.rs/loglog/badge.svg
[docsrs]: https://docs.rs/loglog/A simple and usable logger.
## Usage
Create the builder:
```rust
loglog::build()
```Configure the options:
```rust
loglog::build()
.time(Some("%H:%M"))
.stdout(true)
```Finally, set up and use the logger:
```rust
loglog::build()
.time(Some("%H:%M"))
.stdout(true)
.init()
.unwrap();info!("Hello!");
```For more information, please see the [documentation](https://docs.rs/loglog/).
## License
loglog is licensed under the MIT license. Please see the `LICENSE` file for more
details.