Skip to content
Myr

docs: fix log section typo and example output (#1068)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Truffle · committed by GitHub · parent 18333af · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:README.md+2 added-2 removed
368 unmodified lines
369<img src="https://github.com/charmbracelet/gum/assets/42545625/5cfbb0c8-0022-460d-841b-fec37527ca66" width="300" alt="Running gum format for different types of formats" />370371## Log372373`log` logs messages to the terminal at using different levels and styling using373`log` logs messages to the terminal using different levels and styling using374the [`charmbracelet/log`](https://github.com/charmbracelet/log) library.375376```bash377# Log some debug information.378gum log --structured --level debug "Creating file..." name file.txt379# DEBUG Unable to create file. name=temp.txt379# DEBUG Creating file... name=file.txt380381# Log some error.382gum log --structured --level error "Unable to create file." name file.txt383# ERROR Unable to create file. name=temp.txt
104 unmodified lines