Log Module
From SolarStrike wiki
Revision as of 18:32, 3 June 2014 by Elverion (talk | contribs) (Protected "Log Module" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
Contents
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.