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

How to disable Unity log printing to console? #70

Open
chrisyarbrough opened this issue Nov 19, 2022 · 0 comments
Open

How to disable Unity log printing to console? #70

chrisyarbrough opened this issue Nov 19, 2022 · 0 comments

Comments

@chrisyarbrough
Copy link

First, thanks for providing the community with this great tool!

I would like Unity to write to a log file, so I specified the UnityEditorArguments.LogFile option, but I do not want the log to be streamed to the console that is running the build process, so I also set UnityEditorSettings.RealTimeLog to false.

However, now the log is still printed to the console if Unity returns an exit code other than zero. For my use case of running unit tests, this is inappropriate because the editor log won't contain any relevant information.

I searched for settings to configure this, but it doesn't seem to be implemented. Is there a different way of preventing the log output from ending up in my console?

I was also looking for a way to replace parts of the Cake.Unity implementation to make this possible, but it seems since all the relevant tool classes are internal, there's no way for me extend this myself.

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

1 participant