Add defined type for log sources and fix parameter check for package class