Hey guys!
I'm using OLS to run node on thousands of applications and servers, but they are all logging errors to the default stderr file: /usr/local/lsws/logs/stderr.log
I need a way to log each application to a different file, similar to what we did using PHP here: https://forum.openlitespeed.org/thr...t-error-log-instead-of-stderr.3895/#post-7013
I tried something like this, but it didn't work:
	
	
	
		
 I tried to use LSNODE_CONSOLE_LOG as an env to log things to a specific file, but also didn't work.
Do you know a better way to handle this with node?
Thanks!
								I'm using OLS to run node on thousands of applications and servers, but they are all logging errors to the default stderr file: /usr/local/lsws/logs/stderr.log
I need a way to log each application to a different file, similar to what we did using PHP here: https://forum.openlitespeed.org/thr...t-error-log-instead-of-stderr.3895/#post-7013
I tried something like this, but it didn't work:
		Code:
	
	context / {
  type                    appserver
  env                     LSAPI_STDERR_LOG=/srv/xxxxxxxxxxxx.configr.cloud/log/lsws/stderr.log
  include                 /srv/xxxxxxxxxxxx.configr.cloud/.env
  location                /srv/xxxxxxxxxxxx.configr.cloud/www
  binPath                 /var/www/.virtualenvs/xxxxxxxxxxxx.configr.cloud/10.13.0/bin/node
  appType                 node
  startupFile             index.js
  addDefaultCharset       off
}
	Do you know a better way to handle this with node?
Thanks!