Added 'format' field and fixed log archive bug