Skip to content

Log file location cannot be changed #816

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

Closed
samindaperamuna opened this issue Feb 7, 2022 · 4 comments
Closed

Log file location cannot be changed #816

samindaperamuna opened this issue Feb 7, 2022 · 4 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@samindaperamuna
Copy link

Even after the project folder is changed to the desired location, a seperate folder is created for the log files in the home directory.

To reproduce

  1. Change the default sketchbook location
  2. Delete the Arduino folder in the home directory
  3. Restart Arduino IDE

Screenshot-3

OS : Fedora Linux
Version : 2.0.0-rc3

@samindaperamuna samindaperamuna added the type: imperfection Perceived defect in any part of project label Feb 7, 2022
@per1234
Copy link
Contributor

per1234 commented Feb 7, 2022

Hi @samindaperamuna. Thanks for taking the time to submit an issue.

I see we have another report about this at #394.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed Feb 7, 2022
@per1234 per1234 self-assigned this Feb 7, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Feb 7, 2022
@drws
Copy link

drws commented Feb 16, 2022

@per1234 This one doesn't seem to be a direct duplicate of #394. I have an additional proposition for this one which cannot go into #394. It is that log file location should not only be configurable, but the logging itself should be able to be turned off. I'm proposing a solution that this one be reopened.

I've managed to hack around it with ln -s /dev/null ~/.arduino15/logs/application.log. Things seem to be working, but the workaround is not well-tested yet so use with care.

@per1234
Copy link
Contributor

per1234 commented Feb 16, 2022

This one doesn't seem to be a direct duplicate of #394

That is true, but my impression is that this was an "XY problem". The "Y" is to make the IDE stop creating this undefined folder in whatever working directory you start it from. That is clearly a bug, so better to fix the bug than to add an advanced configuration option every user will need to hunt down and set (the "X").

If the bug was fixed and the IDE saved the logs to a reasonable location, would you have any desire to change that location?

I've managed to hack around it with ln -s /dev/null ~/.arduino15/logs/application.log

Aha! I see you also are presenting an "XY problem". That is the logs path used by Arduino IDE 1.x. This discussion and repository is about Arduino IDE 2.x, which is a complete rewrite of the Arduino IDE. Arduino IDE 2.x has a completely different logging system and never writes anything to ~/.arduino15/logs.

Logging has been permanently disabled in Arduino IDE 1.x, starting from the 1.8.19 release. So all you need to do is update to the latest production version of the Arduino IDE and your problem will be solved. You can get the latest Arduino IDE here:

https://www.arduino.cc/en/software

the logging itself should be able to be turned off

I think it is a reasonable request. Please open a new issue for it.

@drws
Copy link

drws commented Feb 21, 2022

If the bug was fixed and the IDE saved the logs to a reasonable location, would you have any desire to change that location?

It's only that I see this one as a superset of the earlier #394 and not the other way around.

Arduino IDE 2.x has a completely different logging system and never writes anything to ~/.arduino15/logs.

Thank you for your explanation, I see missed the intended repository.

Logging has been permanently disabled in Arduino IDE 1.x, starting from the 1.8.19 release.

Again, thank you for the info. That solves my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants