Log write file

I use logrotate for linux to clear logs, and here is my logrotate configuration
image


My log store name is logfile.log, the rotation backup file is called logfile.log.1. I found that nakama wrote all logs to logfile.log.1. How do I fix this problem