add log_format, change to class
add log_format, change to class