Logging to file can be done multiple ways.
The 12-factor-app way (not just the 12 factor app way, but 12 factor apps make a point of doing it this way) of doing it would be to log to STDOUT and/or STDERR and then piping it elsewhere for deployment. This also makes development easy. Also if you're using something like containers to deploy your program, they log the container's STDOUT and STDERR to a file to begin with.
The std lib log
package has two ways to change output to a file.
One way is as follows:
log.SetOutput(<something that implements io.Writer, probably os.File>)
log.Println("some message")
The other is:
logger := log.New(<something that implements io.Writer, probably os.File>, <a prefix String>, <some flag, see https://golang.org/pkg/log/#pkg-constants>)
logger.Println("some message")
The second option is also how you can implement different log levels (i.e. INFO, DEBUG, WARN, ERROR, etc) by having each level be its own logger.
However logrus gives you a lot of this already for you, so that is probably your best bet if you just want to have logging implemented quickly.