You have misunderstood the `-f` option.
From the FreeBSD `logger(1)` manual:
> `-f file`
>
> Read the contents of the specified file into syslog. This option is ignored when a message is also specified.
The `logger` utility will send the message to the syslog service (by default on the local machine) and depending on its configuration and the priority/tag of the message, it will be appended to one or several log files. You can't log to a _specific_ log file without configuring syslog to treat your log messages specially.