R
R
raiboon2015-06-10 16:08:00
go
raiboon, 2015-06-10 16:08:00

How to log in go?

How to log in go?
In theory, I found it - https://github.com/op/go-logging ... But it seems to me not very convenient, given that in each file you need to get a logger, set the level.
What I need?
Several levels of logging, some of which can be turned off when building a release.
Simple configuration in one place.
Dynamic "direction" of the log. So that during debugging it would be printed in std.Out, and in production, so that it would be rotating logs with compression.
Well, in general, who logs how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey K, 2015-06-10
@raiboon

https://github.com/Sirupsen/logrus

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question