forked from rust-lang/log
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite liblog into a logging facade
See issue rust-lang#3 for background. Closes rust-lang#3 Closes rust-lang#7 Closes rust-lang#11
- Loading branch information
Showing
5 changed files
with
650 additions
and
764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
log | ||
=== | ||
|
||
A Rust library for application logging via debug/info/warn/error macros | ||
A Rust library providing a lightweight logging *facade*. | ||
|
||
[![Build Status](https://travis-ci.org/rust-lang/log.svg?branch=master)](https://travis-ci.org/rust-lang/log) | ||
|
||
[Documentation](http://doc.rust-lang.org/log) | ||
|
||
A logging facade provides a single logging API that abstracts over the actual | ||
logging implementation. Libraries can use the logging API provided by this | ||
crate, and the consumer of those libraries can choose the logging | ||
implementation that is most suitable for its use case. | ||
|
||
Libraries should simply depend on the `log` crate, using the various logging | ||
macros as they like. Applications should choose a logging implementation that | ||
will process all logging messages. | ||
|
||
## Usage | ||
|
||
Add this to your `Cargo.toml`: | ||
|
||
```toml | ||
[dependencies] | ||
log = "0.1.0" | ||
log = "0.2" | ||
``` | ||
|
||
and this to your crate root: | ||
|
||
```rust | ||
#[macro_use] | ||
extern crate log; | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.