Browse Source

Update Readme.md

master
Jaeha Choi 2 months ago
parent
commit
20f125e468
Signed by: Jaeha.Choi GPG Key ID: D6133D1D117FF503
  1. 11
      Readme.md

11
Readme.md

@ -8,10 +8,15 @@
Contains simple wrapper methods to support level-based logging.
#### Usage
```go
import "github.com/jaeha-choi/Proj_Coconut_Utility/log"
// Initialize logger
log.Init(os.Stdout, log.Error)
1. Import package: `import "github.com/jaeha-choi/Proj_Coconut_Utility/log"`
2. Initialize the logger: `log.Init(os.Stdout, log.DEBUG)`
3. Use one of the level to log: `log.Error(err)`
log.Debug("Debug msg") // Won't print; Mode is set to log.Error
log.Error(err)
```
### `util` package

Loading…
Cancel
Save