You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/pgt_env/src/lib.rs
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ pub struct PgLSEnv {
38
38
39
39
// DEPRECATED
40
40
pubpgt_log_path:PgLSEnvVariable,
41
+
pubpgt_log_level:PgLSEnvVariable,
41
42
pubpgt_log_prefix:PgLSEnvVariable,
42
43
pubpgt_config_path:PgLSEnvVariable,
43
44
}
@@ -68,6 +69,10 @@ impl PgLSEnv {
68
69
"PGT_LOG_PATH",
69
70
"The directory where the Daemon logs will be saved. Deprecated, use PGLS_LOG_PATH instead.",
70
71
),
72
+
pgt_log_level:PgLSEnvVariable::new(
73
+
"PGT_LOG_LEVEL",
74
+
"Allows to change the log level. Default is debug. This will only affect \"pgt*\" crates. All others are logged with info level. Deprecated, use PGLS_LOG_LEVEL instead.",
75
+
),
71
76
pgt_log_prefix:PgLSEnvVariable::new(
72
77
"PGT_LOG_PREFIX_NAME",
73
78
"A prefix that's added to the name of the log. Default: `server.log`. Deprecated, use PGLS_LOG_PREFIX_NAME instead.",
Copy file name to clipboardExpand all lines: docs/reference/env_variables.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@
7
7
8
8
The directory where the Daemon logs will be saved.
9
9
10
+
### `PGLS_LOG_LEVEL`
11
+
12
+
Allows to change the log level. Default is debug. This will only affect "pgt*" crates. All others are logged with info level.
13
+
10
14
### `PGLS_LOG_PREFIX_NAME`
11
15
12
16
A prefix that's added to the name of the log. Default: `server.log.`
@@ -19,6 +23,10 @@
19
23
20
24
The directory where the Daemon logs will be saved. Deprecated, use PGLS_LOG_PATH instead.
21
25
26
+
### `PGT_LOG_LEVEL`
27
+
28
+
Allows to change the log level. Default is debug. This will only affect "pgt*" crates. All others are logged with info level. Deprecated, use PGLS_LOG_LEVEL instead.
29
+
22
30
### `PGT_LOG_PREFIX_NAME`
23
31
24
32
A prefix that's added to the name of the log. Default: `server.log`. Deprecated, use PGLS_LOG_PREFIX_NAME instead.
0 commit comments