Console.log... Automatic coding?
Posted: 26 April 2013, 20:37
Hello,
I wonder if we can easely automize coding in log:
I mean, instead of repeating function name
using something like:
console.log( thisfunction.name ) ???
I did not find something simple, is there any solution?
I wonder if we can easely automize coding in log:
I mean, instead of repeating function name
Code: Select all
notif_PeacePipePlayed: function (notif)
{
console.log( 'notif_PeacePipePlayed' );
console.log( notif );
this.SlidePeacePipeFromPlayerBoard(notif.args.player_id,notif.args.node,notif.args.index);
},
console.log( thisfunction.name ) ???
I did not find something simple, is there any solution?