- Notifications
You must be signed in to change notification settings - Fork95
Getting started
Nick Mosher edited this pageSep 26, 2017 ·11 revisions
The following guide is to help you start working with slog. Feel free to reach out for more help onslog gitter channel, and explore other wiki pages for more information.
- I am writing a new application, and I want to use slog features.
- I have an existing application, and would like an easy way to use slog features
- I want the users of my library to benefit from slog features.
- Checkslog - logging to terminal example
- Checkslog - logging to a file example
- Check howmussh (ssh multiplexer) setups up custom slog logging
- Check howshadowsocks-rust setups up custom slog logging
Generally existing applications should eventually use the same techniques as advised fornew apps, but there are couple helpers to get up to speed without too much trouble.
- If you were using
env_logger
before, checkslog-envlogger README - If you want to avoid converting your existing logging statements, checkslog scope example
- Checkslog example library, especially the main
lib.rs