(.js)
laraImport("lara.code.Logger");
(.lara)
import lara.code.Logger;
Classes:
new Logger([isGlobal = false], [filename = undefined])
Logger object, for inserting code that prints/saves information to files.
Type
Type.LONGLONG
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.
appendLongLong(expr)
Appends an expression that represents a long 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'.
longLong(expr)
Appends an expression that represents a long long.
octal(expr)
The same as 'appendOctal'.
printfFormat
Used for both C and Java printf functions
printfFormat.Logger.prototype.Type.LONGLONG
string(expr)
The same as 'appendString'.
tab()
Appends a tab to the buffer.
text(text)
The same as 'append'.