Skip to content

Commit 7066a19

Browse files
committed
feat: syslog-tracing support windows
1 parent 849c5bf commit 7066a19

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ dns-over-h3 = ["shadowsocks-service/dns-over-h3"]
126126
# Enable logging output
127127
logging = [
128128
"log4rs",
129-
"syslog-tracing",
130129
"tracing",
131130
"tracing-subscriber",
132131
"time",
133132
"tracing-appender",
133+
"tracing-syslog",
134134
]
135135

136136
# Enable DNS-relay
@@ -204,6 +204,9 @@ replay-attack-detect = [
204204
"security-replay-attack-detect",
205205
] # Backward compatibility. DO NOT USE.
206206

207+
# Logging to syslog (Unix only)
208+
tracing-syslog = ["dep:syslog-tracing"]
209+
207210
[dependencies]
208211
log = "0.4"
209212
log4rs = { version = "1.2", optional = true }
@@ -216,6 +219,7 @@ tracing-subscriber = { version = "0.3", optional = true, features = [
216219
"local-time",
217220
] }
218221
tracing-appender = { version = "0.2.3", optional = true, default-features = false }
222+
syslog-tracing = { version = "0.3", optional = true }
219223
time = { version = "0.3", optional = true }
220224

221225
serde = { version = "1.0", features = ["derive"] }
@@ -250,7 +254,6 @@ windows-service = { version = "0.8", optional = true }
250254

251255
[target.'cfg(unix)'.dependencies]
252256
xdg = "3.0"
253-
syslog-tracing = { version = "0.3", optional = true }
254257

255258
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
256259
reqwest = { version = "0.12", features = [

0 commit comments

Comments
 (0)