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

Added support for custom flags for createWriteStream #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elis
Copy link

@elis elis commented Mar 23, 2022

I wanted the logger to overwrite the log file every time it instantiated but the implementation wouldn't allow for custom flags passed to the FileLogger createWriteStream invocation, so I've added the possibility to pass in custom flags, and fallback to the default 'a' flag.

elis added 2 commits March 23, 2022 11:32
Added the option to pass `options.flags` to `createWriteStream` (I want the log to be over-written every time the logger instantiates).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant