opened
wizardnet972
username_0
**title**

bug?
```
 DerivedLogger.prototype[level] = function (msg) {
      //
      // Optimize the hot-path which is the single object.
      //
      if (arguments.length === 1) {
        const info = msg.message && msg || { message: msg };
        info.level = info[LEVEL] = level;
        this.write(info);
        return this;
      }

      //
      // Otherwise build argument list which could potentially conform to either
      // 1. v3 API: log(obj)
      // 2. v1/v2 API: log(level, msg, ... [string interpolate], [{metadata}], [callback])
      //
      this.log.apply(this, [level].concat(Array.prototype.slice.call(arguments)));
    };
```
error not return object like log
issue
created
wizardnet972
username_0
[https://github.com/winstonjs/winston/pull/1153](https://github.com/winstonjs/winston/pull/1153)
comment
created
indexzero
username_1
Fixed by #1153. Thanks for your contribution!
comment
closed
indexzero
username_1
issue