databricks-cli/libs/log/handler
Denis Bilenko 54e16d5f62
Always print warnings and errors; clean up format (#2213)
## Changes
- Print warnings and errors by default.
- Fix ErrAlreadyPrinted not to be logged at Error level.
- Format log messages as "Warn: message" instead of "WARN" to make it
more readable and in-line with the rest of the output.
- Only print attributes (pid, mutator, etc) and time when the overall
level is debug (so --debug output has not changed much).

## Tests
- Existing acceptance tests show how warning messages appear in various
test case.
- Added new test for `--debug` output.
- Add sort_lines.py helper to avoid dependency on 'sort' which is
locale-sensitive.
2025-02-07 11:29:40 +00:00
..
colors.go Rewrite the friendly log handler (#1038) 2023-12-01 12:17:04 +00:00
colors_test.go Rewrite the friendly log handler (#1038) 2023-12-01 12:17:04 +00:00
friendly.go Always print warnings and errors; clean up format (#2213) 2025-02-07 11:29:40 +00:00
friendly_test.go Rewrite the friendly log handler (#1038) 2023-12-01 12:17:04 +00:00
options.go Rewrite the friendly log handler (#1038) 2023-12-01 12:17:04 +00:00