perbone / luascript

Lua language support for Godot Engine
Apache License 2.0
633 stars 45 forks source link

How to Disable/Capture Lua Logging to Terminal? #9

Closed ghost closed 4 years ago

ghost commented 4 years ago

I have a logger in my game which takes a verbosity value and determines how much data to spit out to the terminal. It also saves to a file if the feature is enabled.

I would like to know if there is a way to turn on/off Lua logging via script and if it is possible to capture the output of the log into a variable? If not, I would also like to add this as a feature request.

Thanks!

perbone commented 4 years ago

Hi @alex-evelyn

Good question! Till now I wasn't thinking the logging should be disabled as the project is in its early development. I guess it is a good feature to have. So in the future will implement this.

Thanks for your interest