Skip to content

[Bug]: Problems with JSON files on different systems #2525

@weeptao

Description

@weeptao

🔎 Search Terms

json,Problems with JSON files on different systems,dirname ,

The problem

In the Windows system, all my logs are in the log folder, but in Ubuntu, the JSON file runs to the project running directory in a strange format: log\error\.b3e8a8246ff2dd7567ea2f1baa993ceab005c547-audit.json
My configuration file is roughly like this
image

windows

image

ubuntu:
-- log
-- log\error.b3e8a8246ff2dd7567ea2f1baa993ceab005c547-audit.json
They are in the same level directory

What version of Winston presents the issue?

v3.11.0

What version of Node are you using?

v20.18.0

If this worked in a previous version of Winston, which was it?

No response

Minimum Working Example

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions