LogFormer: A Pre-train and Tuning Pipeline for Log Anomaly Detection