intesso / gdevelop-log

log messages conditionally, inspired by debug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gdevelop-log

tiny log util, implemented for gdevelop, but should work in other environments as well. inspired by debug.

Log Messages in javascript console like console.log, but make it configurable, which logs shall be printed. Patterns can be provided in several ways:

  • '*' means all logs ar printed |
  • 'sendMessage,testCollision' means only sendMessage and testCollision are printed |
  • ',-send' means, all logs in custom functions are printed, but not the ones in functions that start with send |
  • 'blu,bla' means, only logs that were logged in a function named blu or bla are printed

pattern like: '' or ',-position' or 'send*,receive' etc.

license

MIT

About

log messages conditionally, inspired by debug

License:MIT License


Languages

Language:JavaScript 100.0%