-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set and get output helper methods #7
Conversation
log.go
Outdated
@@ -75,6 +75,15 @@ func NewLogger() *Logger { | |||
} | |||
} | |||
|
|||
|
|||
// NewLoggerWithOutput to create a Logger to a different output than stdout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to avoid a new constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
log.go
Outdated
@@ -100,6 +109,16 @@ func (l *Logger) GetLevel() string { | |||
return LogLevelNames[l.logLevel] | |||
} | |||
|
|||
// SetOutput to set the log writer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to rename as SetWriter/GetWriter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
No description provided.