indexzero/winston — Issue #61: padLevels not working correctly
Author: crazytyper
Created: 2011-10-22 11:50:01+00:00
State: open

for "padLevels" to work `logger.js` (around line 128) has to be changed from:

```javascript
// If we should pad for levels, do so
if (this.padLevels) {
msg = new Array(this.levelLength - level.length).join(' ') + msg;
}
```

to

```javascript
// If we should pad for levels, do so
if (this.padLevels) {
msg = new Array(this.levelLength - level.length + 1).join(' ') + msg;
}
```

because `Array(n).join(" ")` produces only `(n-1)` spaces.