Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The implemention of the interface in this project includes the interface itself #8

Closed
xtudouh opened this issue Dec 17, 2015 · 1 comment

Comments

@xtudouh
Copy link

xtudouh commented Dec 17, 2015

type Logger interface {
Level() levels.LogLevel
Name() string
FullName() string
...
}
type logger struct {
Logger
level levels.LogLevel
name string
enabled map[levels.LogLevel]bool
appender Appender
children []Logger
parent Logger
ExitOnFatal bool
}
In the type logger, Logger is if unnecessary or not.

@ian-kent
Copy link
Owner

thanks @xtudouh

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants