-
Notifications
You must be signed in to change notification settings - Fork 1
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
Initial support for stdlib logger #28
base: main
Are you sure you want to change the base?
Conversation
5fa5229
to
bd83775
Compare
@@ -109,37 +107,3 @@ func logrusEmitLogEntry(logger logrus.FieldLogger, level logrus.Level) { | |||
panic(fmt.Sprintf("Log level %d not handled in logrusEmitLogEntry", level)) | |||
} | |||
} | |||
|
|||
func ParseSQLUUIDBytes(v []uint8) (uuid.UUID, error) { |
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.
Moved this function to a common file
"github.com/sirupsen/logrus" | ||
) | ||
|
||
func StdMSSQLLogger(logger *log.Logger) RowsLogger { |
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.
It accepts the standard library logger; but not that the implementation itself uses a bit of code from logrus. We can change the internals later, if we want to. But having a dependency with logrus is not a problem since we need to support it anyway.
examples/helloworld/main.go
Outdated
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.
These are just "nice to have".
bd83775
to
4200d55
Compare
4200d55
to
1f7fcdc
Compare
No description provided.