Log Module

From SolarStrike wiki
Jump to: navigation, search

getFilename

string log.getFilename()

Returns the filename of the file we are logging to.


add

log.add(string msg)

Adds 'msg' into our log file. This includes timestamp prefix, but not newline.


addRaw

log.addRaw(string msg)

Adds 'msg' into our log file. This differs from log.add() as it does not include the timestamp.


isOpen

boolean log.isOpen()

If a log was successfully opened for writing, returns true. Else, returns false.