Skip to content

Commit

Permalink
docs: add missing example for Rotation::MINUTELY (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
salewski authored and hawkw committed Dec 28, 2020
1 parent 5b11fa0 commit 9bbd09b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tracing-appender/src/rolling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ pub fn never(directory: impl AsRef<Path>, file_name: impl AsRef<Path>) -> Rollin
///
/// To use a `Rotation`, pick one of the following options:
///
/// ### Minutely Rotation
/// ```rust
/// # fn docs() {
/// use tracing_appender::rolling::Rotation;
/// let rotation = tracing_appender::rolling::Rotation::MINUTELY;
/// # }
/// ```
///
/// ### Hourly Rotation
/// ```rust
/// # fn docs() {
Expand Down

0 comments on commit 9bbd09b

Please sign in to comment.