Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Latest commit

 

History

History
20 lines (15 loc) · 1.06 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.06 KB

logger

Simple go logger with logging level. Default output will be like this:

09/28 17:40:57.064: **** ERR: [logger.Test_BasicUsage:26]: Hello world arg1 arg2
09/28 17:40:57.082: !!! WARN: [logger.Test_BasicUsage:27]: My warning
09/28 17:40:57.082: === INFO: [logger.Test_BasicUsage:28]: My info
09/28 17:40:57.082: --- DEBU: [logger.Test_BasicUsage:39]: Now you should see my Debug
09/28 17:40:57.082: !!! WARN: [logger.Test_BasicUsage:45]: You should see my warning
09/28 17:40:57.082: !!! WARN: [logger.Test_BasicUsage:46]: You should see my info
09/28 17:40:57.082: **** ERR: [logger.(*mystruct).logMe:59]: OOPS

See impl_test.Test_BasicUsage for examples

Links