Skip to content

不应该强依赖 @tars/winston-tars 扩展的全局 winston #1

@Youjingyu

Description

@Youjingyu

@tars/winston-tars 直接在 winston 原型上扩展了 winston.transports,而由于 npm 的版本机制,@tars/logs 目录下可能存在自己的 winston,比如存在如下目录 @tars/logs/node_modules/winston,这时,@tars/logs 使用的是自己目录下的 winston,导致 @tars/winston-tars 拓展的 winston.transports 无效

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions