Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements "Log to the Unix syslog" example #70

Merged
merged 2 commits into from
May 11, 2017

Conversation

budziq
Copy link
Collaborator

@budziq budziq commented May 11, 2017

src/app.md Outdated
Messages are logged to [UNIX syslog]. Logger backend is initialized
with [`syslog::init`].
[`syslog::Facility`] indicates type of program submitting log.
[`log::LogLevelFilter`] denotes alowed log verbosity
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"alowed" should be "allowed"

src/app.md Outdated
with [`syslog::init`].
[`syslog::Facility`] indicates type of program submitting log.
[`log::LogLevelFilter`] denotes alowed log verbosity
and `Option<&str>` holds optional aplication name.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"aplication" should be "application"

src/app.md Outdated
[`log::LogLevelFilter`] denotes alowed log verbosity
and `Option<&str>` holds optional aplication name.

```rust,no_run
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this no_run? Is there some reason it would fail if run in CI?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your time :)
it is marked as no_run in order not to clobber the syslog. I guess that most people would prefer not to have noise in their syslog at every testrun.

The example is marked as no_run in order not to clobber
the actual on each test run
@budziq
Copy link
Collaborator Author

budziq commented May 11, 2017

@dtolnay typos fixed (sorry for that 😞). The example itself is still no_run unless it is necessary ;)

@dtolnay dtolnay merged commit 03a776d into rust-lang-nursery:master May 11, 2017
@budziq budziq deleted the syslog branch May 11, 2017 15:24
@dtolnay dtolnay mentioned this pull request May 12, 2017
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants