logger: refactor interface

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-29 17:43:06 +03:00
parent dd8894e673
commit 622490fbf3
2 changed files with 11 additions and 4 deletions

View File

@@ -10,6 +10,8 @@ var (
type Logger interface {
// Init initialises options
Init(options ...Option) error
// V compare provided verbosity level with current log level
V(level Level) bool
// The Logger options
Options() Options
// Fields set fields to always be logged