Log message in resgate docker image

#1

Hello, I’m new in resgate. Anyone know how to get the log message detail (in out message) if we run it from docker image?

I tried docker run command:
docker run --name resgate-devel --port 8080:8080 -d --network res resgateio/resgate -a /bku/ -r 60000 --nats nats://nats:4222

I hit resgate few time but it is only show:

2019/08/08 06:30:26 [Main] Starting server
2019/08/08 06:30:26 [Main] Connecting to messaging system
2019/08/08 06:30:26 [Main] Starting HTTP server
2019/08/08 06:30:26 [Main] Listening on http://0.0.0.0:8080

Thank you

1 Like
#2

Hi, and welcome to the forum! :partying_face:

To log all in/out messages, you can add the --debug flag:

docker run --name resgate-devel --port 8080:8080 -d --network res resgateio/resgate -a /bku/ -r 60000 --nats nats://nats:4222 --debug

All available command-line options can be used. But it is true, it is not all too clear that the debug mode logs everything.

Hope that helps!

Best regards,
Samuel