Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
weeptao opened this issue Nov 7, 2024 · 0 comments
Open

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

weeptao opened this issue Nov 7, 2024 · 0 comments

Comments

@weeptao
Copy link

weeptao commented Nov 7, 2024

🔎 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant