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

[Feature Request] Add a logging file for developers #1531

Closed
4 tasks done
walidbouachir opened this issue Mar 30, 2024 · 5 comments
Closed
4 tasks done

[Feature Request] Add a logging file for developers #1531

walidbouachir opened this issue Mar 30, 2024 · 5 comments

Comments

@walidbouachir
Copy link

Is your feature request related to a problem? Please describe.

Hello,

I don't know if there's a logging feature for this, but would be great if you add one (saving into a text file for example), just in case something goes wrong, we can check the logging.

Thank you!

What is your ideal solution to the problem?

Add logging into .txt or .log file

How would this feature be used?

  1. Start the bot
  2. Log into file in case of errors

Additional Info

No response

Checklist

@MrZoyo
Copy link

MrZoyo commented Mar 30, 2024

If you are using bot with command, you can use nohup and output the logging to a specified file.

@walidbouachir
Copy link
Author

If you are using bot with command, you can use nohup and output the logging to a specified file.

Would be easier to read from a file rather than linux shell, no?

@jagrosh
Copy link
Owner

jagrosh commented Apr 1, 2024

If you are using bot with command, you can use nohup and output the logging to a specified file.

Would be easier to read from a file rather than linux shell, no?

nohup logs to a file

@MichailiK
Copy link
Collaborator

I believe the current method of logging to the console is sufficient. We will be adding an option to set a logging level though, so more information gets logged.

@jagrosh
Copy link
Owner

jagrosh commented May 11, 2024

You can set the log level as of 0.4.1 and you could redirect or tee console logs to a file. Technically, you could also open up the jar and change the logback configuration, although I wouldn't recommend doing that. Regardless, I don't think we need any changes for this to be possible.

@jagrosh jagrosh closed this as completed May 11, 2024
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

4 participants