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

Support for configurable logger #366

Merged
merged 4 commits into from Apr 6, 2022
Merged

Support for configurable logger #366

merged 4 commits into from Apr 6, 2022

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.

v3/ldap.go Outdated Show resolved Hide resolved
@johnweldon
Copy link
Member

We need to fix the validators too

v3/ldap.go Outdated Show resolved Hide resolved
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

ldap.go Outdated Show resolved Hide resolved
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