var entity = new IgeEntity();
// Will output:
// IGE *log* [IgeEntity] : hello
entity.log('Hello');
var entity = new IgeEntity(),
param = 'moo';
// Will output:
// moo
// IGE *log* [IgeEntity] : hello
entity.log('Hello', 'info', param);
var entity = new IgeEntity();
// Will output (stack trace is just an example here, real one will be more useful):
// Stack: {anonymous}()@<anonymous>:2:8
// ---- Object.InjectedScript._evaluateOn (<anonymous>:444:39)
// ---- Object.InjectedScript._evaluateAndWrap (<anonymous>:403:52)
// ---- Object.InjectedScript.evaluate (<anonymous>:339:21)
// IGE *warning* [IgeEntity] : A test warning
entity.log('A test warning', 'warning');
var entity = new IgeEntity();
// Will output (stack trace is just an example here, real one will be more useful):
// Stack: {anonymous}()@<anonymous>:2:8
// ---- Object.InjectedScript._evaluateOn (<anonymous>:444:39)
// ---- Object.InjectedScript._evaluateAndWrap (<anonymous>:403:52)
// ---- Object.InjectedScript.evaluate (<anonymous>:339:21)
// IGE *error* [IgeEntity] : An error message
entity.log('An error message', 'error');