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

Is there a way to generate files and write them the first time you debug? #295

Closed
SF-Simon opened this issue Jan 14, 2020 · 1 comment
Closed

Comments

@SF-Simon
Copy link

Every time you start the app, a TXT will be generated, but there may be no printed information except the environment information.

So I wonder if there is a way to generate a TXT file and input relevant information after the first print information?

@DaveWoodCom
Copy link
Owner

Yes.

Check out the Advanced Usage section of the ReadMe. You'll see the recommended way to add your log destinations. Also you'll see that the logAppDetails() method is what outputs the environment information. If you alter the order a bit, you can call logAppDetails() before adding the file destination. That will prevent the generic info from being written to the file. If you then want it to be written later, you can call logAppDetails() again and it will only write to destinations it hasn't already written to.

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

2 participants