Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdded links to logging frameworks #188
Conversation
dtolnay
reviewed
Jun 2, 2017
| @@ -208,6 +229,16 @@ | |||
| //! [`MaxLevelFilter`]: struct.MaxLevelFilter.html | |||
| //! [`set_logger_raw`]: fn.set_logger_raw.html | |||
| //! [`shutdown_logger_raw`]: fn.shutdown_logger_raw.html | |||
| //! [env_logger]: https://docs.rs/env_logger/*/env_logger/ | |||
| //! [simple_logger]: https://docs.rs/simple_logger/*/simple_logger/ | |||
This comment has been minimized.
This comment has been minimized.
dtolnay
Jun 2, 2017
Member
https://github.com/borntyping/rust-simple_logger would be a better landing page.
| @@ -92,6 +92,27 @@ | |||
| //! } | |||
| //! ``` | |||
| //! | |||
| //! # Available logging frameworks | |||
| //! | |||
| //! In order to produce log output executables have to utilize | |||
This comment has been minimized.
This comment has been minimized.
dtolnay
Jun 2, 2017
Member
"Utilize" is not the right word. See https://english.stackexchange.com/questions/143941/when-to-use-use-and-when-to-use-utilize-in-a-sentence/.
This comment has been minimized.
This comment has been minimized.
| @@ -208,6 +229,16 @@ | |||
| //! [`MaxLevelFilter`]: struct.MaxLevelFilter.html | |||
| //! [`set_logger_raw`]: fn.set_logger_raw.html | |||
| //! [`shutdown_logger_raw`]: fn.shutdown_logger_raw.html | |||
| //! [env_logger]: https://docs.rs/env_logger/*/env_logger/ | |||
| //! [simple_logger]: https://docs.rs/simple_logger/*/simple_logger/ | |||
| //! [simplelog]: https://docs.rs/simplelog/*/simplelog/ | |||
This comment has been minimized.
This comment has been minimized.
| //! * [env_logger] | ||
| //! * [simple_logger] | ||
| //! * [simplelog] | ||
| //! * [pretty_env_logger] |
This comment has been minimized.
This comment has been minimized.
dtolnay
Jun 2, 2017
Member
Please remove this from the list for now and file an issue asking the author to add documentation. As is, it doesn't seem intended for people to use.
This comment has been minimized.
This comment has been minimized.
budziq
Jun 2, 2017
Author
Contributor
Filed an issue against the repo seanmonstar/pretty-env-logger#2 already got positive response from the author :)
| //! # Available logging frameworks | ||
| //! | ||
| //! In order to produce log output executables have to utilize | ||
| //! a framework compatible with the facade. |
This comment has been minimized.
This comment has been minimized.
dtolnay
Jun 2, 2017
Member
Almost none of these are a "framework." Maybe only log4rs. Something like env_logger is definitely not a "framework." I think above it refers to these using the word "implementation."
The
logcrate provides a single logging API that abstracts over the actual logging implementation.
This comment has been minimized.
This comment has been minimized.
budziq
Jun 2, 2017
Author
Contributor
I was quite at loss in regard to wording as https://docs.rs/log/0.3.8/log/ landing page most refers to "implementations" as "frameworks" I agree that my wording was amiss.
@dtolnay Maybe rest of the docs should be updated to tone down the "framework" wording?
This comment has been minimized.
This comment has been minimized.
dtolnay
Jun 2, 2017
Member
Thanks, I didn't notice how pervasive it is in the existing documentation. I filed #191 to follow up.
budziq
reviewed
Jun 2, 2017
|
Thanks for great review! |
| //! * [env_logger] | ||
| //! * [simple_logger] | ||
| //! * [simplelog] | ||
| //! * [pretty_env_logger] |
This comment has been minimized.
This comment has been minimized.
budziq
Jun 2, 2017
Author
Contributor
Filed an issue against the repo seanmonstar/pretty-env-logger#2 already got positive response from the author :)
| @@ -92,6 +92,27 @@ | |||
| //! } | |||
| //! ``` | |||
| //! | |||
| //! # Available logging frameworks | |||
| //! | |||
| //! In order to produce log output executables have to utilize | |||
This comment has been minimized.
This comment has been minimized.
| //! # Available logging frameworks | ||
| //! | ||
| //! In order to produce log output executables have to utilize | ||
| //! a framework compatible with the facade. |
This comment has been minimized.
This comment has been minimized.
budziq
Jun 2, 2017
Author
Contributor
I was quite at loss in regard to wording as https://docs.rs/log/0.3.8/log/ landing page most refers to "implementations" as "frameworks" I agree that my wording was amiss.
@dtolnay Maybe rest of the docs should be updated to tone down the "framework" wording?
budziq
force-pushed the
budziq:sinks_docs
branch
from
dbd3c44
to
969107c
Jun 2, 2017
This comment has been minimized.
This comment has been minimized.
|
Done. Thanks for your time! Also updated the wording on following heading from "Logger Implementation" to "Implementing a Logger" to avoid weird stuttering between sections |
budziq commentedJun 2, 2017
•
edited
solves #115
simple_loggerandpretty_env_loggerwhich do not provide nice docsI am eager hear any suggestions.