rename logger's write function