Skip to content

Commit 05f3ad7

Browse files
authored
build: bump dependencies and write docs for new features (#92)
Signed-off-by: tison <[email protected]>
1 parent 416242c commit 05f3ad7

File tree

12 files changed

+1744
-27
lines changed

12 files changed

+1744
-27
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
strategy:
5959
matrix:
6060
os: [ ubuntu-22.04, macos-14, windows-2022 ]
61-
rust-version: [ "1.75.0", "stable" ]
61+
rust-version: [ "1.80.0", "stable" ]
6262
runs-on: ${{ matrix.os }}
6363
steps:
6464
- uses: actions/checkout@v4
@@ -77,12 +77,14 @@ jobs:
7777
- name: Run examples
7878
shell: bash
7979
run: |
80+
set -x
8081
cargo run --example simple_stdout
8182
cargo run --example multiple_dispatches
8283
cargo run --example custom_layout_filter
8384
cargo run --features="no-color" --example simple_stdout
8485
cargo run --features="json" --example json_stdout
8586
cargo run --features="json,rolling-file" --example rolling_file
87+
cargo run --features="fastrace/enable" --example fastrace
8688
8789
required:
8890
name: Required

.gitignore

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
/target
2-
/Cargo.lock
3-
4-
logs
5-
6-
# IDE and editor
7-
.vscode
8-
.idea
2+
/logs

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ All notable changes to this project will be documented in this file.
44

55
## [0.20.0] 2025-01-08
66

7+
### Breaking changes
8+
9+
* Bump MSRV to 1.80 for upgrading `colored` to 3.0.
10+
* Layout and Appender now accept a new argument `diagnostics: &[Diagnostic]` to retrieve the mapped diagnostics context. Users can use `logforth::diagnostic::Visitor` to visit the diagnostics context.
11+
712
### New features
813

9-
* Add logforth::marker::TraceIdMarker to support attaching trace id to log's kv.
14+
* Add `logforth::diagnostic::FastraceDiagnostic` to support attaching trace id to as key-value context.
15+
* Add `logforth::diagnostic::ThreadLocalDiagnostic` to support attaching thread local key-value context.
1016

1117
## [0.19.2] 2025-01-03
1218

0 commit comments

Comments
 (0)