clux / logule

A multi-transport, peer-dependent logging library for nodejs - UNMAINTAINED
MIT License
35 stars 5 forks source link

`pad` not working #8

Closed vjpr closed 12 years ago

vjpr commented 12 years ago

this.size is undefined _log() call

vjpr commented 12 years ago

To fix I had to change Logger::_log:160 to

_this = this
  var ns = this.namespaces.map(function (n) {
    return prefixCol(c.bold(pad(n + '', _this.size))) + " " + d;
  });
clux commented 12 years ago

Fixed in 0.9.0.