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
Thought to raise this question because it's been bugging me for over a day. I am using rotating-file-stream on Win11 and it produces a text file. The size of this text file is never updated until I
refresh the file in Windows Explorer by clicking on the file, or
tail the file (eg Get-Content <filename> -Wait), or
type the file (eg type <filename>)
I realise this is a Windows issue. Can anyone share why this is the case?
The text was updated successfully, but these errors were encountered:
@termsofservice212
Its just how windows works. Unless wiriting side call sync/flush its not gonna update file information in explorer.
But using sync/flush too much can make stress on the running system. And without using it - logs may be corrupted upon unexpected proccess/system exit. So it must be balanced in some way and not just flush/flush/flush all the time.
Hello all,
Thought to raise this question because it's been bugging me for over a day. I am using rotating-file-stream on Win11 and it produces a text file. The size of this text file is never updated until I
Get-Content <filename> -Wait
), ortype <filename>
)I realise this is a Windows issue. Can anyone share why this is the case?
The text was updated successfully, but these errors were encountered: