Skip to content

Instantly share code, notes, and snippets.

@nadako

nadako/Main.hx Secret

Created February 10, 2016 16:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nadako/11f53e8e084d89c6a29d to your computer and use it in GitHub Desktop.
Save nadako/11f53e8e084d89c6a29d to your computer and use it in GitHub Desktop.
function customLog(v, i) {
var args = [v];
if(i != null && i.customParams != null) args = args.concat(i.customParams);
console.log.apply(console,args);
}
<script src="custom-log.js"></script>
<script src="main.js"></script>
class Main {
static function main() {
haxe.Log.trace = untyped customLog;
trace("A", "b", {a: 123});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment