Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Add log file when stdout is invalid #52

Closed
wants to merge 1 commit into from

Conversation

ncharlton02
Copy link

This checks on startup whether or not stdout is invalid. If it is
invalid then it creates a log file which stdout and stderr are piped
into.

Also, this currently places a file called log.txt into the root of the crate. I believe xi-core places logs in the AppData/Local/xi-core folder on windows so maybe the logs should be placed there?

P.S. I am by no means an expert on winapi/unsafe code so there might be some things that need changed!

This checks on startup whether or not stdout is invalid. If it is
invalid then it creates a log file which stdout and stderr are piped
into.
@raphlinus
Copy link
Member

Thanks and sorry for not reviewing earlier. There's been some motion in this space, #62 adds a console if available, and #60 is a proposal to use proper logging infrastructure. This PR is not mergeable now, so wondering whether we should close it. I know that's not a great "new developer" experience, apologies again.

@ncharlton02
Copy link
Author

I think we should close this too. Thanks for the response!

@ncharlton02 ncharlton02 closed this Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants