Fixed logging capability for windows