Skip to content

Commit 5cb331c

Browse files
committed
convert to tracing
No caching
1 parent 01c3667 commit 5cb331c

File tree

11 files changed

+370
-1140
lines changed

11 files changed

+370
-1140
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 161 deletions
This file was deleted.

Cargo.toml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
[package]
22
name = "pyo3-log"
3-
version = "0.12.4"
4-
authors = ["Michal 'vorner' Vaner <[email protected]>"]
5-
description = "Logging bridge from pyo3 native extension to python"
6-
documentation = "https://docs.rs/pyo3-log"
7-
repository = "https://github.com/vorner/pyo3-log"
3+
version = "0.1.0"
4+
authors = ["Daniel Olsen <[email protected]>"]
5+
description = "tracing layer from pyo3 native extension to python"
6+
repository = "https://github.com/DataTreehouse/tracing-pyo3-logger"
87
readme = "README.md"
9-
keywords = ["pyo3", "python", "logging"]
8+
keywords = ["pyo3", "python", "logging", "tracing"]
109
categories = ["development-tools::debugging"]
11-
edition = "2018"
12-
license = "Apache-2.0 OR MIT"
13-
rust-version = "1.63"
10+
edition = "2024"
11+
license = " ARR + Apache-2.0 OR MIT"
12+
rust-version = "1.85"
1413

1514
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1615

@@ -19,6 +18,8 @@ arc-swap = "~1"
1918
# It's OK to ask for std on log, because pyo3 needs it too.
2019
log = { version = "~0.4.4", default-features = false, features = ["std"] }
2120
pyo3 = { version = ">=0.23, <0.26", default-features = false }
21+
tracing = "0.1.41"
22+
tracing-subscriber = "0.3.19"
2223

2324
[dev-dependencies]
2425
pyo3 = { version = ">=0.23, <0.26", default-features = false, features = ["auto-initialize", "macros"] }

README.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
1-
# pyo3-log
1+
# tracing-pyo3-logger
22

3-
[![Actions Status](https://github.com/vorner/pyo3-log/workflows/test/badge.svg)](https://github.com/vorner/pyo3-log/actions)
4-
[![codecov](https://codecov.io/gh/vorner/pyo3-log/branch/main/graph/badge.svg?token=3KA3R2D9fV)](https://codecov.io/gh/vorner/pyo3-log)
5-
[![docs](https://docs.rs/pyo3-log/badge.svg)](https://docs.rs/pyo3-log)
6-
7-
A bridge to send Rust's log messages over to Python. Meant to help logging from
8-
pyo3 native extensions.
9-
10-
Read [the documentation](https://docs.rs/pyo3-log) before using.
3+
A fork of https://github.com/vorner/pyo3-log implementing a tracing layer rather than a log-consumer
114

125
## License
136

14-
Licensed under either of
7+
pyo3-log was licensed under
158

169
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
1710
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
1811

1912
at your option.
2013

21-
### Contribution
22-
23-
Unless you explicitly state otherwise, any contribution intentionally
24-
submitted for inclusion in the work by you, as defined in the Apache-2.0
25-
license, shall be dual licensed as above, without any additional terms
26-
or conditions.
14+
the additions/conversions made in tracing-pyo3-logger is ALL RIGHTS RESERVED

0 commit comments

Comments
 (0)