modified logger command to check wildcard