// in scriptlog.gs
...
//=============================================================================
// Desc: Possible log status values, to be used when calling the logging
// functions on this class.
//=============================================================================
public define int LogStatus_Diagnostic = 1;
public define int LogStatus_Warning = 2;
public define int LogStatus_Error = 3;
public define int LogStatus_Success = 4;
//=============================================================================
// Name: Log
// Desc: Prints a line of text to the log window/file. Script logging must be
// enabled in the game settings at the time the log is generated.
// Parm: status - One of the LogStatus_* defines above.
// Parm: msg - The text to print.
//=============================================================================
public native void Log(int status, string msg);
//=============================================================================
// Name: Log
// Desc: Adds a single log entry, defaulting to LogStatus_Diagnostic.
//=============================================================================
public void Log(string msg) { Log(LogStatus_Diagnostic, msg); }
...