LogToFile Function

Logs a message to any file. The log message will be in the normal SourceMod format, with the plugin logtag prepended.

void LogToFile(const char[] file, const char[] format, any... ...)

Parameters

const char[] file

File to write the log message in.

const char[] format

String format.

any... ...

Format arguments.

Errors

File could not be opened/written.