adding type flag (filter by log type)