Skip to content

Add std package level logger#1

Open
aloababa wants to merge 3 commits intohekmon:masterfrom
aloababa:master
Open

Add std package level logger#1
aloababa wants to merge 3 commits intohekmon:masterfrom
aloababa:master

Conversation

@aloababa
Copy link
Copy Markdown

I think having a package level logger is handy in many cases, most of the time you will want a logger that prints on stdout at the info level. So you don't have to instanciate a new logger every time.

I had to rename log level constants by adding Level prefix because it was clashing with log package level function like Debug, Info, Warning... So i may introduce some breaking changes if users were using those log level constants.

I also added some set methods to configure the logger afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant