-
Notifications
You must be signed in to change notification settings - Fork 156
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
Keep same file name for log and rotate the file with timestamp #302
Comments
This is correct - and you should see a symlink in the |
Hi @mattberther thanks, but I am not seeing |
Below is a shell session showing that this should work. Can you try this simple program on your system and let us know what happens?
|
@mattberther as you suggested ran the simple program, got the following in logs. I don't see error.log
|
From your project's root folder, what is the output of Further, it seems as though creating symlinks on Windows requires admin permissions (see nodejs/node#18518 (comment)). Let me know if that solves the issue, and if so, I'll submit a PR against the file-stream-rotator component to add the required option to bypass this. |
Checked in project's root folder file-stream-rotator version is 0.5.7 |
I don't understand the symlink options. Why not have the current file without any date/number and just apply them after a rotation? That's what I need and what I had used in other languages. IMHO the mentioned options over-complicate the usage. |
same what I want. |
@singaselvasankar Where you able to solve this issue? |
No @Darshilp326 I couldn't, but symlink is working as expected in my Linux system |
I don't want to config my elastic search to watch the file with pattern. I thing its very important to have the current file without any pattern |
This answer here worked very well for me: #310 (comment) I think you are missing the
and in the
I think this issue can be closed. |
logger.txt
I'm using [email protected] and [email protected]
In my logger configuration I have the following.
this is supposed to be like current log file should be error.log and when rotates it should get append with date format
even though I have mentioned createSymlink, tailable set to true symlinkName with 'error.log'
my current log files are like this error-2021-02-01-13.log, error-2021-02-01-12.log
The text was updated successfully, but these errors were encountered: