fixed example
This commit is contained in:
parent
ff24a0a7e1
commit
8cc03b5e59
@ -20,13 +20,13 @@ General usage:
|
|||||||
```
|
```
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import git.bjphoster.com/b.pedini/go-basic-logger
|
import gobasiclogger "git.bjphoster.com/b.pedini/go-basic-logger"
|
||||||
|
|
||||||
logger Logger
|
var logger gobasiclogger.Logger
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
logLevel := "DEBUG"
|
logLevel := "DEBUG"
|
||||||
logger = *new(Logger)
|
logger = *new(gobasiclogger.Logger)
|
||||||
logger.Initialize(&logLevel)
|
logger.Initialize(&logLevel)
|
||||||
logger.Debug("Program execution started")
|
logger.Debug("Program execution started")
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ Getting the Logger level from an environment variable (called LOGLEVEL, not cust
|
|||||||
...
|
...
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
logger = *new(Logger)
|
logger = *new(gobasiclogger.Logger)
|
||||||
logger.Initialize(nil)
|
logger.Initialize(nil)
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user