Better domain handling in logging.

This commit is contained in:
Kyle Isom
2015-09-22 13:26:06 -07:00
parent 4b3f1037b3
commit ea689c7e97
3 changed files with 102 additions and 29 deletions

View File

@@ -64,7 +64,7 @@ var levelPrefix = [...]string{
var DateFormat = "2006-01-02T15:03:04-0700"
func (l *Logger) outputf(level Level, format string, v []interface{}) {
if !logConfig.registered[l.domain] {
if !l.Enabled() {
return
}
@@ -81,7 +81,7 @@ func (l *Logger) outputf(level Level, format string, v []interface{}) {
}
func (l *Logger) output(level Level, v []interface{}) {
if !logConfig.registered[l.domain] {
if !l.Enabled() {
return
}