Strongloop loopback application via "strong-pm" application * application * to file?

From the docs :

you can dump the last 1 megabyte of the contents of the log file to the console with this command:

slc ctl log-dump my-app --follow

      

And carefree observation

"The slc ctl log-dump command actually consumes log messages, so if more than one person calls it for the same application, only one of them will see the logs.

What is the reason for this? And where does he consume them from? How do I redirect a file?

I am running strong-pm as an upstart service and I can write my log to /var/log/upstart/strong-pm.log

. But this is for files with large parameters and has no registration for my application.

The section under "Logging in production" (also on the prod host setting ) says that upstart is responsible for logging, but that is only for pm-pm, not my application. Is this section just incomplete? Is there another section of the docs that I should read?

+3


source to share


1 answer


This functionality has been improved since it was originally published.



Now we just send content /var/log/strong-pm.log

via rsyslog and a couple of other services to log logs and errors off site. This log now contains all errors and console.log()

output contained in the application.

0


source







All Articles