diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index 14f2bcf..6e3474d 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -57,7 +57,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - rust: [ stable, 1.64.0 ] + rust: [ stable, 1.66.1 ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 89a01f3..5d5cc6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.26.1] - 2023-09-19 + +Introduce new naming variants that work without `_rCURRENT` files: `Naming::TimestampsDirect` +and `Naming::NumbersDirect` (fixes #127). + +Improve documentation of filename handling. + +Introduce `LoggerHandle.trigger_rotation()` (fixes #147). + ## [0.26.0] - 2023-08-30 Re-open output also for other writers (fixes #143). diff --git a/Cargo.toml b/Cargo.toml index 3cab97d..452ffd9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flexi_logger" -version = "0.26.0" +version = "0.26.1" authors = ["emabee "] categories = ["development-tools::debugging"] description = """ @@ -15,7 +15,7 @@ keywords = ["file", "logger"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/emabee/flexi_logger" -rust-version = "1.64.0" +rust-version = "1.66.0" [lib] doctest = false @@ -55,7 +55,7 @@ regex = { version = "1.1", optional = true } serde = { version = "1.0", optional = true } serde_derive = { version = "1.0", optional = true } thiserror = "1.0" -toml = { version = "0.7", optional = true } +toml = { version = "0.8", optional = true } tracing = { version = "0.1.36", optional = true } tracing-subscriber = { version = "0.3", optional = true, features = [ "env-filter", diff --git a/README.md b/README.md index f6360e1..4a3f4f5 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ See ## Minimal rust version -The minimal supported rust version is currently "1.64.0", +The minimal supported rust version is currently "1.66.0", due to a change in a patch version of a dependency. ## Crate Features diff --git a/scripts/cleanup.rs b/scripts/cleanup.rs index ad8a7b5..4f65a22 100755 --- a/scripts/cleanup.rs +++ b/scripts/cleanup.rs @@ -22,7 +22,6 @@ fn main() { "./log_files/**/*.log", "./log_files/**/*.seclog", "./log_files/**/*.toml", - "./log_files/**/*.zip", "./server/**/*.toml", ] { for globresult in glob::glob(pattern).unwrap() { diff --git a/scripts/qualify.rs b/scripts/qualify.rs index c7b93e2..1870837 100755 --- a/scripts/qualify.rs +++ b/scripts/qualify.rs @@ -48,8 +48,8 @@ fn main() { // Build in important variants std::fs::remove_file("Cargo.lock").ok(); - run_command!("cargo", "+1.64.0", "build", "--no-default-features"); - run_command!("cargo", "+1.64.0", "build", "--all-features"); + run_command!("cargo", "+1.66.1", "build", "--no-default-features"); + run_command!("cargo", "+1.66.1", "build", "--all-features"); std::fs::remove_file("Cargo.lock").ok(); run_command!("cargo", "build"); @@ -67,7 +67,7 @@ fn main() { run_command!("cargo", "+nightly", "clippy", "--all-targets", "--all-features", "--", "-D", "warnings"); // Run tests in important variants - run_command!("cargo", "+1.64.0", "test", "--all-features"); + run_command!("cargo", "+1.66.1", "test", "--all-features"); run_command!("cargo", "test", "--release", "--all-features"); run_command!("cargo", "test", "--no-default-features"); run_command!("cargo", "test", "--release"); diff --git a/src/file_spec.rs b/src/file_spec.rs index 9de3dae..2e7e19f 100644 --- a/src/file_spec.rs +++ b/src/file_spec.rs @@ -4,17 +4,29 @@ use std::path::{Path, PathBuf}; /// Builder object for specifying the name and path of the log output file. /// -/// ```rust -/// # use flexi_logger::FileSpec; -/// assert_eq!( -/// FileSpec::default() -/// .directory("/a/b/c") -/// .basename("foo") -/// .suppress_timestamp() -/// .suffix("bar"), -/// FileSpec::try_from("/a/b/c/foo.bar").unwrap() -/// ); -/// ``` +/// The filename is built from several partially optional components, using this pattern: +/// +/// ```[_][__