Made logs default to w filemode