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

[Question] How can I increase the verbosity of logging? #638

Closed
bkuhl opened this issue Mar 29, 2019 · 1 comment
Closed

[Question] How can I increase the verbosity of logging? #638

bkuhl opened this issue Mar 29, 2019 · 1 comment
Milestone

Comments

@bkuhl
Copy link

bkuhl commented Mar 29, 2019

I'm new to Go and am tinkering with a Discord bot. My bot is losing its connection sometimes and am not seeing anything in my logs. How can I increase the verbosity of logging, I think in the Session.

@shawntoffel
Copy link
Contributor

shawntoffel commented Mar 29, 2019

Session.LogLevel is an int. You can set it to any of the constants defined here: https://godoc.org/github.com/bwmarrin/discordgo#pkg-constants

Example:
session.LogLevel = discordgo.LogInformational

@bkuhl bkuhl closed this as completed Mar 31, 2019
@bwmarrin bwmarrin added this to the N/A milestone Aug 27, 2019
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

No branches or pull requests

3 participants