Skip to content

v0.3.0

Choose a tag to compare

@dmarcelino dmarcelino released this 26 Feb 01:32
· 26 commits to master since this release

v0.3.0

  • Lazy loading debug instances: only when they are used for the first time they are actually instantiated;
    • Note: this breaks the interface. log[level].logger becomes log[level].logger() and log[level].enabled becomes log[level].enabled().
  • Added support for multi arguments (like console.log). Multiple arguments are concatenated using space as separator;
  • Added support printf()-like formatting elements (like console.log);
  • Added support for a new DEBUG_LEVEL env variable where it's possible to restrict the level of output shown. Examples: DEBUG_LEVEL = warn | *:info | myapp:2,otherapp:debug
  • Some highlight changes, most importantly stack trace will be printed in the same color as the level (e.g. red for error);
  • Added trace level.