console.hx
console.hx copied to clipboard
[Feature Request] Work with haxe posInfos
Would be cool if we could pass posInfos to the logger to forward error lines.
class Main {
static function main() {
write("Hey");
}
static function write(a:String, ?infos:PosInfos) {
Console.log('success', infos); // Line information is - Main.hx:3
}
}
Try Console.debug, it'll show line information
https://github.com/haxiomic/console.hx/blob/8ebf3426d97d1e2727cc3763fcd55180146e7bc2/Console.hx#L71