add type to logs