-
Notifications
You must be signed in to change notification settings - Fork 95
Getting started
Nick Mosher edited this page Sep 26, 2017
·
11 revisions
The following guide is to help you start working with slog. Feel free to reach out for more help on slog 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.
- Check slog - logging to terminal example
- Check slog - logging to a file example
- Check how mussh (ssh multiplexer) setups up custom slog logging
- Check how shadowsocks-rust setups up custom slog logging
Generally existing applications should eventually use the same techniques as advised for new apps, but there are couple helpers to get up to speed without too much trouble.
- If you were using
env_logger
before, check slog-envlogger README - If you want to avoid converting your existing logging statements, check slog scope example
- Check slog example library, especially the main
lib.rs