Is it possible to set the log level when logging with gs.log() ?

bbarnard
Kilo Contributor

Is it possible to set the level of a log entry to Warning, Error, or Information? I see logs being created by the system with the levels being set, but I do not see an option to use the gs.log() function to set the level. Is this possible?

I'm currently using the source functionality "gs.log(msg,src)" but would like to enhance my logging in scripts, bus rules, etc...

Thanks,
Bryan

9 REPLIES 9

Chuck Tomasi
Tera Patron

What's the desired goal?


john_roberts
Mega Guru

Not currently possible but it would be nice to have. I'll look into it to see if we can add it.


john_roberts
Mega Guru

I just added two new methods for the next release. Thanks for the suggestion.
gs.logWarning(msg, [source])
gs.logError(msg, [source])


Where's the Like button?


Thanks John, looking forward to seeing them in the next release!