format log records