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

Allow keeping logs outside of the process cwd #21

Open
elbiczel opened this issue Apr 9, 2014 · 0 comments
Open

Allow keeping logs outside of the process cwd #21

elbiczel opened this issue Apr 9, 2014 · 0 comments

Comments

@elbiczel
Copy link

elbiczel commented Apr 9, 2014

In https://github.com/bustardcelly/grunt-forever/blob/master/tasks/forever-task.js you have:

if (this.options().logDir) {
  logDir  = path.join(process.cwd(), this.options().logDir) || logDir;
  logFile = path.join(logDir, this.options().logFile || 'out.log');
  errFile = path.join(logDir, this.options().errFile || 'err.log');
}

I would like to keep my logs outside of the process.cwd(). Especially when the this.options().logDir.startsWith('/'). Could you add support for that please?

omatvejev added a commit to Ecotrust-Canada/grunt-forever that referenced this issue Aug 6, 2015
omatvejev added a commit to Ecotrust-Canada/grunt-forever that referenced this issue Aug 6, 2015
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

1 participant