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

[azcore] Remove logger from azcore #15160

Merged
merged 16 commits into from
Jul 29, 2021
Prev Previous commit
Next Next commit
more feedback
  • Loading branch information
seankane-msft committed Jul 28, 2021
commit edc132a23ce5bfe9a256fbd38e7656f26c676710
4 changes: 2 additions & 2 deletions sdk/azcore/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/internal/logger"
)

// SetClassifications is used to control which classifications are written to
// the log. By default all log classifications are writen.
// LogClassification is used to group entries. Each group can be toggled on or off
type LogClassification logger.LogClassification
seankane-msft marked this conversation as resolved.
Show resolved Hide resolved

const (
Expand Down Expand Up @@ -53,6 +52,7 @@ func transform(lst Listener) logger.Listener {
}
}

// SetListener will set the Logger to write to the specified Listener.
func SetListener(lst Listener) {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: missing doc comment

if lst == nil {
logger.Log().SetListener(nil)
Expand Down