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 29, 2020
1 parent 763aa64 commit 679fd0d
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 679fd0d

Please sign in to comment.