private void RegisterLog() { var globalLogger = new GlobalLogger(); globalLogger.RegisterLogger(_exectueLogDict); var controllerLogger = new ControllerLogger(); controllerLogger.RegisterLogger(_exectueLogDict); }
public async Task <IActionResult> Edit(List <long> statusPaid) { if (statusPaid == null || statusPaid.Count() == 0) { return(RedirectToAction(nameof(Index))); } await _OrderLibrary.StatusChangeAsync(OrderStatus.ToBeShipped, statusPaid); var logger = new ControllerLogger <List <long> >(this.ControllerContext, statusPaid); _logger.LogTrace(logger.GetMessage()); return(RedirectToAction(nameof(Index))); }
private bool LoadLoggers() { var config = FindObjectOfType <RegistrationConfig>(); SceneManager.MoveGameObjectToScene(config.gameObject, SceneManager.GetActiveScene()); _userName = config.userName; _userId = config.userId; if (string.IsNullOrEmpty(_userName) || string.IsNullOrEmpty(_userId)) { return(false); } _rightController = new ControllerLogger(true, _userId); _leftController = new ControllerLogger(false, _userId); return(true); }
private void LoadLoggers() { _rightController = new ControllerLogger(true, null); _leftController = new ControllerLogger(false, null); }