Making pretty logs

For AI and campaign script related discussions and questions
Post Reply
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Making pretty logs

Post by Duha »

Make some some script to pretty log files.

https://github.com/Cjkjvfnby/warzone2100_js_logger

there is 3 public functions.
initLogging add loggers to game events and some function (see implementation before use it!!!)

log sends data to debug and console in pretty format.

inspect print info about function call (argument, result, trace) usage is little weird if you not common with functional coding. :)

Licience is free. If you need part of functionality just copy-paste some functions to you code.
http://addons.wz2100.net/ developer
Post Reply