authelia/internal/logging
Amir Zarrinkafsh fd7b4ada02
[BUGFIX] Disable colored logging outputs when file is specified (#1603)
In some scenarios if a user has a `log_file_path` specified and a TTY seems to be detected this causes terminal coloring outputs to be written to the file. This in turn will cause issues when attempting to utilise the log with the provided fail2ban regexes.

We now override any TTY detection/logging treatments and disable coloring/removal of the timestamp when a user is utilising the text based logger to a file.
2021-01-15 22:16:41 +11:00
..
const.go [BUGFIX] Disable colored logging outputs when file is specified (#1603) 2021-01-15 22:16:41 +11:00
logger_test.go [FEATURE] Add JSON log formatting option (#1488) 2020-11-25 10:46:41 +11:00
logger.go [BUGFIX] Disable colored logging outputs when file is specified (#1603) 2021-01-15 22:16:41 +11:00