Skip to content

Commit

Permalink
docs: add doc for new config feature
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto committed Nov 2, 2023
1 parent 46d2208 commit f2ac4fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Click `Use this template` button to create a new repository. Then clone the new
+ Rename `cmd/greet` to `cmd/YOUR_APP_NAME`
+ Rename inside `Makefile` for `BIN_NAMES`
+ Rename inside `conf/*.toml` for logger file name
+ Rename inside `cmd/greet/app/conf.go` for `Name` constasnt
+ Rename insdie `.vscode` for debugging

3. Add more application if needed
Expand Down Expand Up @@ -62,6 +63,7 @@ go run cmd/greet/main.go Jack -v -c ./dist/config.example.toml
+ [x] Multiple logging output: file, stdout, stderr
+ [x] Command line args, such as `--verbose` and `--config`
+ [x] Config file, such as `./dist/config.example.toml`
+ [x] Find config file in current directory and home directory (~/.config/APP_NAME/config.toml)
+ [x] Log rotation

Use `| jq` to pretty print JSON log.
Expand Down

0 comments on commit f2ac4fa

Please sign in to comment.