question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Log files are always being saved to default directory

See original GitHub issue

I tried running this command:

forever start ./bin/www -l '/logs/nodejs/mylog.log' -o '/logs/nodejs/out.log' -e '/logs/nodejs/error.log' --spinSleepTime 10000 -c

But it keeps saving the logs in the default directory. It completely ignores the flags

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
thomcomcommented, Nov 3, 2015

FOREVER_ROOT works for me, though it also creates pids and sock directories there. Good enough solution.

0reactions
sue891206commented, Feb 28, 2020
You need to add the log destination specifiers before the filename to run. So
forever -e /path/error.txt -o /path/output.txt start index.js

This really works fine in my env!!! ^0^

see from:https://stackoverflow.com/questions/21021186/where-does-forever-store-console-log-output

Read more comments on GitHub >

github_iconTop Results From Across the Web

View or Change the Default Locations for Data and Log Files
In Database default locations, view the current default locations for new data files and new log files. To change a default location, ...
Read more >
Where are userspace programs supposed to save their logs?
If you as an ordinary user decide to run a program, the natural place for its logs are in your home directory. Your...
Read more >
Change location of log files - Macrium Support Forum
The Reflects logs have always been located in the '<PRAOGRAMDATA>\Macrium\Reflect' folder by default. Log file save location can only be ...
Read more >
Enabling full verbose logging - Esri Support
The default directory for Windows is <ArcGIS Installation Directory>\ArcIMS\ArcIMS\Server\log. The default for UNIX and Linux is $AIMSHOME/log directory. You ...
Read more >
How to manage SQL Server logs effectively - SQLShack
The agent log file extension is *.OUT and stored in the log folder as per default configuration. For example, in my system, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found