Closed ericoporto closed 2 months ago
In regards to the log group, there may be two approaches:
I don't know yet on the best approach, but I think as simple as possible would be alright, so from the options I guess it would be the option 1.
In the meantime I discovered I wasn't dreaming and found a function is in the API, it just has no log types!
Ah, that function prints into "Game" group; it's equivalent of function that prints warnings and errors when something wrong happens after a script command.
EDIT: I think originally it only printed to that in-game "console", which is now deprecated.
Describe the problem Often it's useful to log from a Plugin, and usually this is done by simply throwing printfs or using iostream, but it would be nice to be able to use AGS own log functionality.
Plus there was a typo (https://github.com/adventuregamestudio/ags/commit/9acbba5f17e10921da19f8724bae75d080afd4b0) that made a bit hard to use the Engine script api for
System.Log
.Suggested change Add some function for logging from the plugin API and increase the plugin version once adding it so it can be detected by a plugin that such function is available.