After build to file. I run it by daemonize with command
daemonize /var/www/repo/bin/tracking_api 1>> /var/www/repo/bin/tracking_api.log
I see it generate a new file but nothing in that file. In code I log.Print a lot.
I just know basic about GO, please guide me to log that. Is there any easier way to run golang to server instead of using daemonize?