diff --git a/README.md b/README.md index 00fa6ab..5d6b670 100644 --- a/README.md +++ b/README.md @@ -393,8 +393,13 @@ gum log --structured --level debug "Creating file..." name file.txt # Log some error. gum log --structured --level error "Unable to create file." name file.txt # ERROR Unable to create file. name=temp.txt + +# Include a timestamp. +gum log --time rfc822 --level error "Unable to create file." ``` +See the Go [`time` package](https://pkg.go.dev/time#pkg-constants) for acceptable `--time` formats. + See [`charmbracelet/log`](https://github.com/charmbracelet/log) for more usage. Running gum log with debug and error levels