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

File plugin writeToFile append does not work #666

Closed
kadoshms opened this issue Oct 10, 2016 · 1 comment
Closed

File plugin writeToFile append does not work #666

kadoshms opened this issue Oct 10, 2016 · 1 comment

Comments

@kadoshms
Copy link

kadoshms commented Oct 10, 2016

Hey,

I am currently using version 1.3.21, but could not find any change log about that in later versions, so I can only guess this issue was not resolved.

I am trying to create a logging mechanism in my app, then the reasonable thing to do is to append the logs to a single file.
For some reason, it replaces the last line only, such that at the end the log file has only one single row.

The code I used:

File.writeFile(this.base, 'log.text', log, { append:true, replace: false}).then(
      ()  =>  { // do something },
      (error) => { // handle error }
    );

Thanks.

@ihadeed
Copy link
Collaborator

ihadeed commented Oct 12, 2016

Can you try with the latest version v2.2.2 and report back? Thanks.

@ihadeed ihadeed closed this as completed Oct 12, 2016
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

No branches or pull requests

2 participants