Page 1 of 1

Console.log... Automatic coding?

Posted: 26 April 2013, 20:37
by Rudolf
Hello,
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);
						},
using something like:
console.log( thisfunction.name ) ???
I did not find something simple, is there any solution?

Re: Console.log... Automatic coding?

Posted: 26 April 2013, 21:29
by sourisdudesert
Hello Rudolf,

Well, this is true. Indeed, this is already done by:

"Dispatching a notification, type = XXXXXXX"

And by the logging of the notification in the log section beside the game arena.

Cheers,