C.99. $world->writetolog

Abstract

$world->writetolog function: WRITEs something TO the LOG file

void $world->writetolog( str ,
  ... );
 

Writes the given line to the log file, if any. If logging is not currently enabled, then this function does nothing.

Each argument is a complete line, that is written preceded by a timestamp, if this is enabled, to the log file. If the string has ANSI codes or codes used by the colorize function, they will be stripped and not written to the log file.

See also $world->logfile .