using "filemode" in logger - tries to change file with chmod()