阅读关于nodejs应用程序Amazon Web Services的控制台日志控制台、应用程序、日志、nodejs

由网友(寄春天给你)分享简介:您好我不得不通过AWS魔豆部署节点的应用程序。 Hi I have a node app deployed via AWS beanstalk. 有没有办法来阅读我的节点脚本的控制台日志上的任何地方AWS?Is there a way to read the console logs in my node sc...

您好我不得不通过AWS魔豆部署节点的应用程序。

Hi I have a node app deployed via AWS beanstalk.

有没有办法来阅读我的节点脚本的控制台日志上的任何地方AWS?

Is there a way to read the console logs in my node script anywhere on AWS?

感谢

推荐答案

如果你指的是控制台输出,则见的 getConsoleOutput SDK参考。例如:

If you mean the console output, then see the getConsoleOutput SDK reference. For example:

var params = {
  InstanceId: 'STRING_VALUE', // required
  DryRun: true || false,
};
ec2.getConsoleOutput(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});
阅读全文

相关推荐

最新文章