Log Module: Difference between revisions
From SolarStrike wiki
Jump to navigationJump to search
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..." |
m Protected "Log Module" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
(No difference)
| |
Latest revision as of 18:32, 3 June 2014
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.