$log->Clear([filename])
log
filename
Writes the current event log to the file filename (if supplied), and clears the event log.