{"action":"opened","issue":{"url":"https://api.github.com/repos/go-ldap/ldap/issues/164","repository_url":"https://api.github.com/repos/go-ldap/ldap","labels_url":"https://api.github.com/repos/go-ldap/ldap/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/go-ldap/ldap/issues/164/comments","events_url":"https://api.github.com/repos/go-ldap/ldap/issues/164/events","html_url":"https://github.com/go-ldap/ldap/issues/164","id":323312464,"number":164,"title":"Logging output and levels should be configurable","user":{"login":"vetinari","id":53407,"avatar_url":"https://avatars1.githubusercontent.com/u/53407?v=4","gravatar_id":"","url":"https://api.github.com/users/vetinari","html_url":"https://github.com/vetinari","followers_url":"https://api.github.com/users/vetinari/followers","following_url":"https://api.github.com/users/vetinari/following{/other_user}","gists_url":"https://api.github.com/users/vetinari/gists{/gist_id}","starred_url":"https://api.github.com/users/vetinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetinari/subscriptions","organizations_url":"https://api.github.com/users/vetinari/orgs","repos_url":"https://api.github.com/users/vetinari/repos","events_url":"https://api.github.com/users/vetinari/events{/privacy}","received_events_url":"https://api.github.com/users/vetinari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-15T17:27:51Z","updated_at":"2018-05-15T17:27:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The current logging with the standard `log` package can spam log files in certain circumstances:\r\nissuing a search request to a slow server with timeouts set, reuse this connection to do another search and the old search request is dumped: https://github.com/go-ldap/ldap/blob/master/conn.go#L399-L400 - the current request is then processed normally.\r\n\r\nSetting log level to debug should get the ldap.Debug messages in the logs, anything else disables it \r\n\r\nMy preferred choice would be [logrus](https://github.com/sirupsen/logrus)"}}
{"actor":{"display_login":"vetinari"}}