You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Hope all is well.
Forever-service has been extremely useful for us.
Would like to submit a request to be able to set the location for LOGFILE.
Currently, it is hardcoded in initd.template line 34;
LOGFILE="/var/log/{{service}}.log"
I tried using the forever log option when I created the service:
--foreverOptions " -l /appl/logs/myApp.log"
I got an interesting error:
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received [ '/var/log/myApp.log', '/appl/logs/myApp.log' ]
at assertPath (path.js:7:11)
at Object.join (path.js:1211:7)
at Object.forever.logFilePath (/usr/lib/node_modules/forever/lib/forever.js:943:12)
at tryStart (/usr/lib/node_modules/forever/lib/forever/cli.js:152:21)
at /usr/lib/node_modules/forever/lib/forever/cli.js:318:5
at Array.forEach (native)
at Object.app.cmd.cli.startDaemon (/usr/lib/node_modules/forever/lib/forever/cli.js:316:11)
at apply (/usr/lib/node_modules/forever/node_modules/director/lib/director/router.js:448:19)
at _every (/usr/lib/node_modules/forever/node_modules/director/lib/director/router.js:30:9)
at Router.invoke (/usr/lib/node_modules/forever/node_modules/director/lib/director/router.js:454:5)
The text was updated successfully, but these errors were encountered:
Unfortunately I can't help you with this, as I'm experiencing the same issue. The odd thing is, somehow I achieved it in the past, but that was a while ago while I was testing out forever-service, and I have since forgotten how it can be achieved.
I looks a bit into the code and if you look at the templates directory you'll see that "/var/log" is hard coded, and that's where the log files will be stored.
Hello, Hope all is well.
Forever-service has been extremely useful for us.
Would like to submit a request to be able to set the location for LOGFILE.
Currently, it is hardcoded in initd.template line 34;
LOGFILE="/var/log/{{service}}.log"
initd.template line 34;
https://github.com/zapty/forever-service/blob/8ac17df6e94767d92352d5ae5eb62573a8ab1c0a/templates/sysvinit/initd.template
upstart.template 25:
https://github.com/zapty/forever-service/blob/8ac17df6e94767d92352d5ae5eb62573a8ab1c0a/templates/upstart/upstart.template
I tried using the forever log option when I created the service:
--foreverOptions " -l /appl/logs/myApp.log"
I got an interesting error:
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received [ '/var/log/myApp.log', '/appl/logs/myApp.log' ]
at assertPath (path.js:7:11)
at Object.join (path.js:1211:7)
at Object.forever.logFilePath (/usr/lib/node_modules/forever/lib/forever.js:943:12)
at tryStart (/usr/lib/node_modules/forever/lib/forever/cli.js:152:21)
at /usr/lib/node_modules/forever/lib/forever/cli.js:318:5
at Array.forEach (native)
at Object.app.cmd.cli.startDaemon (/usr/lib/node_modules/forever/lib/forever/cli.js:316:11)
at apply (/usr/lib/node_modules/forever/node_modules/director/lib/director/router.js:448:19)
at _every (/usr/lib/node_modules/forever/node_modules/director/lib/director/router.js:30:9)
at Router.invoke (/usr/lib/node_modules/forever/node_modules/director/lib/director/router.js:454:5)
The text was updated successfully, but these errors were encountered: