Binding log to a output file