go-ozzo / ozzo-log

A Go (golang) package providing high-performance asynchronous logging, message filtering by severity and category, and multiple message targets.
MIT License
122 stars 31 forks source link

add func ParseLevel #19

Open ns5d opened 3 years ago

ns5d commented 3 years ago
target := log.NewConsoleTarget()
target.MaxLevel = log.ParseLevel(os.Getenv("LOG_LEVEL"))
logger.Targets = append(logger.Targets, target)
coveralls commented 3 years ago

Coverage Status

Coverage decreased (-1.0%) to 63.547% when pulling 2d91b381aeaa25ed7204bdb96990d19b27bb342d on ns5d:master into 610cdd147d9aff9523eed107898d2e87ee5336aa on go-ozzo:master.