(.js)
laraImport("lara.code.Logger");
(.lara)
import lara.code.Logger;
new Logger([isGlobal = false], [filename = undefined])
Logger object, for inserting code that prints/saves information to files.
Type
append(text)
Appends the given string to the current buffer.
appendChar(expr)
Appends an expression that represents a char.
appendDouble(expr)
Appends an expression that represents a double.
appendHex(expr)
Appends an expression that represents a hex number.
appendInt(expr)
Appends an expression that represents a int.
appendLong(expr)
Appends an expression that represents a long.
appendOctal(expr)
Appends an expression that represents an octal.
appendString(expr)
Appends an expression that represents a string.
appendln(text)
The same as 'append', but adds a new line at the end of the buffer.
char(expr)
The same as 'appendChar'.
double(expr)
The same as 'appendDouble'.
getAfterJp()
The 'last' join point after .log() is called.
hex(expr)
The same as 'appendHex'.
int(expr)
The same as 'appendInt'.
isGlobalFn()
ln()
Appends a new line to the buffer.
log($jp, insertBefore)
Adds code that prints the message built up to that point with the append() functions.
TODO: Improve this comment, add JSDoc tags
logBefore($jp)
Helper method which call 'log' with 'insertBefore' set to true
long(expr)
The same as 'appendLong'.
octal(expr)
The same as 'appendOctal'.
printfFormat
Used for both C and Java printf functions
printfFormat.Logger.prototype.Type.LONG
Redefines print format flags according to Java standard
string(expr)
The same as 'appendString'.
tab()
Appends a tab to the buffer.
text(text)
The same as 'append'.