You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature proposal.
This library can only use global logger on package level, so different loggers cannot be used separately for each database or test.
It would be useful to be able to configure a logger per connection.
If ErrLog is nil, it fallbacks to the package global logger (errLog).
I'm not sure if adding it to the Config is a good idea since the ErrLog cannot be included into a DSN string.
Alternatively, I think there is a way to add parameters for configuration to NewConnector.
Activity