Skip to content

Support for configurable logger#366

Merged
johnweldon merged 4 commits intogo-ldap:masterfrom
n3integration:enhancement/logger
Apr 6, 2022
Merged

Support for configurable logger#366
johnweldon merged 4 commits intogo-ldap:masterfrom
n3integration:enhancement/logger

Conversation

@n3integration
Copy link
Contributor

Fixes #365

Initial pass at a pull request to introduce an ldap.logger variable that defaults to the log.Default() logger (to preserve backwards compatibility), but can be overridden at runtime through the ldap.Logger(l *log.Logger) function.

@johnweldon
Copy link
Member

We need to fix the validators too

lgtm

Co-authored-by: John Weldon <johnweldon4@gmail.com>
@johnweldon
Copy link
Member

Sorry, should have specified that we should do it in the other file too - we're still trying to keep them in sync

sync w/ v3
@johnweldon johnweldon merged commit 8c6415a into go-ldap:master Apr 6, 2022
@n3integration n3integration deleted the enhancement/logger branch April 6, 2022 17:39
cpuschma pushed a commit to clementblaise/ldap that referenced this pull request Apr 25, 2022
* [go-ldap#365] - support for configurable logger
m-vinc pushed a commit to m-vinc/ldap that referenced this pull request Jun 15, 2022
* [go-ldap#365] - support for configurable logger
inv2004 pushed a commit to inv2004/ldap that referenced this pull request Jan 17, 2023
* [go-ldap#365] - support for configurable logger
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.

Support user-defined logger instance

2 participants