MusicBot icon indicating copy to clipboard operation
MusicBot copied to clipboard

[Feature Request] Add a logging file for developers

Open walidbouachir opened this issue 1 year ago • 4 comments

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

walidbouachir avatar Mar 30 '24 19:03 walidbouachir

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

MrZoyo avatar Mar 30 '24 22:03 MrZoyo

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?

walidbouachir avatar Apr 01 '24 14:04 walidbouachir

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

jagrosh avatar Apr 01 '24 14:04 jagrosh

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.

MichailiK avatar Apr 24 '24 11:04 MichailiK

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 avatar May 11 '24 21:05 jagrosh