serverless-dynamodb-local icon indicating copy to clipboard operation
serverless-dynamodb-local copied to clipboard

How to see the log/error messages of local dynamodb?

Open ChenLi0830 opened this issue 8 years ago • 4 comments
trafficstars

Hi there, I really like this plugin. It is much easier to setup the DB, create table and seed data than the official AWS guide. (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html). Right now, there is one thing that I don't quite figure out yet, which is how to see the log message from the local DynamoDB we start?

In the official guide, after running java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb , you can see error logs from there, but I don't quite get how to do that with this plugin.

ChenLi0830 avatar Aug 03 '17 03:08 ChenLi0830

Hi @ChenLi0830. When you say "you can see error logs from there" referring to the terminal on the DynamodDB Local running process?

AshanFernando avatar Aug 03 '17 06:08 AshanFernando

Hey @AshanFernando yeah exactly. That helps my development work flow a lot. Do you happen to know if there is a way to do it with this serverless plugin?

ChenLi0830 avatar Aug 03 '17 15:08 ChenLi0830

This is not currently supported directly. Need to implement post logs to terminal in dynamodb local thread in dynamodb-localhost plugin (Dependency for serverless-dynamodb-local). I have created an issue for this #115

AshanFernando avatar Aug 07 '17 11:08 AshanFernando

Thank you for explaining that and creating the issue in dynamodb-localhost plugin!

ChenLi0830 avatar Aug 07 '17 16:08 ChenLi0830