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

Allow an alternative log location to Documents folder to be specified #161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iandundas
Copy link

On MacOS, for unsandboxed apps, the log file appears in the ~/Documents folder.

CleanShot 2023-12-18 at 15 03 03@2x

It would be good to be able to specify an alternative location for the logs to be saved into.

Downside of this approach: two separate definitions setting logFileLocation to "diagnostics_log.txt", would welcome alternative suggestion.

Copy link
Contributor

@AvdLee AvdLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heeeey, welcome as a contributor @iandundas!

This looks good, I'm fine passing in the URL like this 👌 Would you be able to write a test for this as well?

@github-actions github-actions bot added the Stale label Jan 19, 2024
@kairadiagne kairadiagne removed their request for review January 19, 2024 11:22
@WeTransfer WeTransfer deleted a comment from github-actions bot Jan 22, 2024
@AvdLee AvdLee removed the Stale label Jan 22, 2024
@github-actions github-actions bot added the Stale label Feb 22, 2024
@BasThomas BasThomas removed the Stale label Feb 22, 2024
@WeTransfer WeTransfer deleted a comment from github-actions bot Feb 23, 2024
@github-actions github-actions bot added the Stale label Mar 25, 2024
@peagasilva peagasilva removed the Stale label Mar 26, 2024
@WeTransfer WeTransfer deleted a comment from github-actions bot Mar 26, 2024
Copy link

This PR is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.

@iandundas
Copy link
Author

iandundas commented May 3, 2024

Sorry for delay 🙈

Just pushed a basic test. I can't work out a way to cleanup after the test without hitting this print() (below)

Regardless, it's just a print: the test does pass.

Copy link
Member

@peagasilva peagasilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iandundas thanks for adding the test file! Could you please add another test to ensure that in the absence of a custom log folder, the default documents folder is used? Thanks in advance!

Copy link

This PR is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants