You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im only getting the file with date (meaning 'myLogFile2023-01-01-16-02')
tried to add extension but it didn't help.
I'm using version 4.7.1.
I tried finding some issues that discuss this problem but found non from this version.
also tried this demo from stackoverflow which didnt work.
var os = require('os');
var winston = require('winston');
require('winston-daily-rotate-file');
var transport = new winston.transports.DailyRotateFile({
dirname: os.tmpdir(),
frequency: '1m',
filename: 'log',
datePattern: 'YYYY-MM-DD-HH-mm',
zippedArchive: false,
maxSize: '1k',
maxFiles: '2',
extension: '.log'
});
var logger = winston.createLogger({
transports: [
transport
]
});
async function demo() {
for (i = 1; i < 20; i++) {
logger.info('Hello World ' + i);
console.log(i);
await new Promise(r => setTimeout(r, 10000));
}
}
demo();
any suggestions ? is it a known bug?
The text was updated successfully, but these errors were encountered:
When I run it as admin it works and the symbolic link is created and can be used as intended.
If I run without admin privileges I can't create the symbolic link. When I run it without admin privileges after I have created the symbolic link as admin, the link is deleted.
this is my transport configuration, it works on windows 11, linux, mac etc but for some reason not on windows 10.
im only getting the file with date (meaning 'myLogFile2023-01-01-16-02')
tried to add extension but it didn't help.
I'm using version 4.7.1.
I tried finding some issues that discuss this problem but found non from this version.
also tried this demo from stackoverflow which didnt work.
any suggestions ? is it a known bug?
The text was updated successfully, but these errors were encountered: