void Start() { string context = "xxx"; ILogService logService = new FileLog(); logService.Log(context); logService = new LogAdapter(); logService.Log(context); }