Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-26 05:50:29 +01:00
Log timestamps with milliseconds by default
Dieser Commit ist enthalten in:
Ursprung
d348f12a0e
Commit
071a3b2a32
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
## Timestamp format used in extended logging.
|
## Timestamp format used in extended logging.
|
||||||
## Format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime
|
## Format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime
|
||||||
# LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S"
|
# LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S.%3f"
|
||||||
|
|
||||||
## Logging to file
|
## Logging to file
|
||||||
## It's recommended to also set 'ROCKET_CLI_COLORS=off'
|
## It's recommended to also set 'ROCKET_CLI_COLORS=off'
|
||||||
|
|
|
@ -330,7 +330,7 @@ make_config! {
|
||||||
/// Enable extended logging
|
/// Enable extended logging
|
||||||
extended_logging: bool, false, def, true;
|
extended_logging: bool, false, def, true;
|
||||||
/// Log timestamp format
|
/// Log timestamp format
|
||||||
log_timestamp_format: String, true, def, "%Y-%m-%d %H:%M:%S".to_string();
|
log_timestamp_format: String, true, def, "%Y-%m-%d %H:%M:%S.%3f".to_string();
|
||||||
/// Enable the log to output to Syslog
|
/// Enable the log to output to Syslog
|
||||||
use_syslog: bool, false, def, false;
|
use_syslog: bool, false, def, false;
|
||||||
/// Log file path
|
/// Log file path
|
||||||
|
|
Laden …
In neuem Issue referenzieren