databricks-cli/cmd
Miles Yucht 8a1be76910
Always log with text format by default (#1096)
## Changes
The JSON logger is excellent as a machine-readable logger with lots of
metadata, but the resulting logs are difficult to read:

<img width="1601" alt="Image_from_Databricks"
src="https://github.com/databricks/cli/assets/1850319/76aa852f-756f-4e0a-bc00-3a6e3224296a">

Currently, we only use the friendly log printer when run from a TTY.
This PR removes that restriction, so logs will be pretty-printed by
default, regardless of TTY or not. If a user needs machine-readable
logs, they can still use `--log-format JSON`.

## Tests
Manual test: `databricks current-user me --debug | cat` uses the
pretty-printing logger.


![Screenshot_02_01_2024__13_12](https://github.com/databricks/cli/assets/1850319/45fd5587-52f6-4864-b7d2-3708ed2ff87f)
2024-01-03 09:39:33 +00:00
..
account Upgrade Go SDK to 0.27.0 (#1064) 2023-12-14 08:15:00 +00:00
api Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
auth Ask for host when .databrickscfg doesn't exist (#1041) 2023-12-04 15:40:52 +00:00
bundle Tweak command groups in CLI help (#1092) 2023-12-28 13:14:55 +00:00
configure Filter out system clusters for `--configure-cluster` (#1031) 2023-11-30 09:59:11 +00:00
fs Tweak command groups in CLI help (#1092) 2023-12-28 13:14:55 +00:00
labs Do not allow input prompts in Git Bash terminal (#1069) 2023-12-18 15:01:59 +00:00
root Always log with text format by default (#1096) 2024-01-03 09:39:33 +00:00
sync Tweak command groups in CLI help (#1092) 2023-12-28 13:14:55 +00:00
version Added description for version command (#737) 2023-09-06 08:41:47 +00:00
workspace Fixed storage-credentials list command in text output (#1094) 2024-01-02 07:24:51 +00:00
cmd.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00