Put error logs in cache folder

Do you want to request a feature or report a bug?

feature

What is the current behavior?
Yarn will store yarn-error.log in the current directory.

What is the expected behavior?
In npm v4.2.0, npm-debug.log is no longer placed in the current directory, but in the (npm config get cache)/_logs directory. I suggest yarn do something similar with the error logs.

Author: Fantashit

1 thought on “Put error logs in cache folder

  1. Cache folder does not seem like the best place to store error log.
    How about a configurable folder for install metadata, e.g. .yarn in the project?
    We could put .yarn-integrity an yarn-error.log there if user opted in.

Comments are closed.