format logging fixed