Log Module

From SolarStrike wiki
Revision as of 17:44, 3 June 2014 by Elverion (talk | contribs) (Created page with "== 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.