LogLM: From Task-based to Instruction-based Automated Log Analysis