cake-contrib / cake-contrib/Cake.Unity

How to disable Unity log printing to console?

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
36
Forks
16
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.