sm.log
Used for logging information from scripts to the game log file and developer console.
Functions
error
sm.log.error(...)
Logs an error message.
Works the same as print, except the text is colored red and marked as an error.
Parameters:
...(any): The data to print.
info
sm.log.info(...)
Logs an information message.
Works the same as print, except the text is colored white and marked as info.
Parameters:
...(any): The data to print.
warning
sm.log.warning(...)
Logs a warning message.
Works the same as print, except the text is colored yellow and marked as a warning.
Parameters:
...(any): The data to print.