Skip to content

Winston 3 compatibility - file creation #1494

@chrismueller

Description

@chrismueller

Please tell us about your environment:

winston version?

  • winston@2
  • winston@3

What is the problem?

With winston@2 I'm running two file transports. One logging all events and one logging only errors and exceptions. winston@2 is creating the log files when the first log entry is written. winston@3 is creating the log files at initialization even if no log entry is written. It would be nice to have an option to disable the precreation of the log files.

The reason behind is that I'm monitoring my application with checking the existence of the "error" log file.
And now with winston@3 this file is allways created when the application is started,

What's the feature?

Option to disable the precreation of log files

Is this feature similar to an existing feature in another tool?

Like the behave in winston@2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestRequest for new functionality to support use cases not already coveredGood First IssueGood issue for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions