write log directly