Skip to content
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

Merged
merged 7 commits into from
Apr 4, 2018

Conversation

martinilevi
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Mar 27, 2018

Coverage Status

Coverage increased (+0.2%) to 85.222% when pulling 469377f on martinilevi:feature/SetOutput into 920ccb4 on Telefonica:master.

log.go Outdated
@@ -75,6 +75,15 @@ func NewLogger() *Logger {
}
}


// NewLoggerWithOutput to create a Logger to a different output than stdout.
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@jlorgal jlorgal merged commit c509139 into Telefonica:master Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants