os.Mkdir and os.MkdirAll permissions

I'm trying to create a log file at the start of my program. I need to check if a /log directory exists if it doesn't create the directory then move on to creating the log file. Well I tried to use os.