/// <summary> /// Logging debug when tranfer is finish. /// </summary> /// <param name="evfData"></param> private void LogTranferData(IEnumerable <Vendor> vendorTransections) { foreach (var item in vendorTransections) { _logger.LogDebug($"VendorNo : {item.VendorNo}, VendorName : {item.VendorName}"); } }
public async Task <IActionResult> AplicarConciliacionAutomatica([FromBody] DatosAplicaConciliacionDto datosAplicacionDto) { _logger.LogInfo("Metodo aplicar conciliacion automatica"); var conciliacionResult = await _conciliacionService.AplicarConciliacionAutomatica(datosAplicacionDto); if (conciliacionResult.Resultado == 1) { conciliacionResult.Mensaje = "La conciliación automática se realizó correctamente."; } try { DatosNotificacionDto datosNotificacionDto = new DatosNotificacionDto(); datosNotificacionDto.IndPlanilla = 0; datosNotificacionDto.Planilla = "0"; datosNotificacionDto.Usuario = datosAplicacionDto.Usuario.ToString(); //Agregado 16/07/2018 var res = await _planillaService.NotificarPlanillaConciliada(datosNotificacionDto); } catch (Exception ex) { _logger.LogDebug(ex.Message); _logger.LogDebug(ex.StackTrace); } return(Ok(conciliacionResult)); }
public async Task <IActionResult> CreatePost(int id, EvaluationCreationDto evaluationCreation) { if (!ModelState.IsValid) { return(View(evaluationCreation)); } var boutique = await _repository.Boutique.GetBoutiqueByIdAsync(id); if (boutique == null) { _logger.LogError($"la boutique avec id: {id} n'existe pas dans la base"); return(NotFound()); } evaluationCreation.BoutiqueId = id; var user = await _userManager.FindByEmailAsync(User.Identity.Name); evaluationCreation.UserId = user.Id; evaluationCreation.NoteGlobale = evaluationCreation.NoteProprete + evaluationCreation.NoteEquipe + evaluationCreation.NoteAgencement + evaluationCreation.NoteComportement; _logger.LogDebug($"action create : objet evaluation boutiqueId: {evaluationCreation.BoutiqueId} evaluation user id {evaluationCreation.UserId}"); var evaluation = _mapper.Map <Evaluation>(evaluationCreation); _repository.Evaluation.Create(evaluation); await _repository.SaveAsync(); return(RedirectToAction(nameof(Index))); }
public async Task <string> CreateJobAsync(string sessionId, string process_ID, long requestNumber, InputVariableCollection inputVarCollection = null) { logger.LogDebug($"CreateJobAsync requestNumber fired {requestNumber}"); // Set up the create new job method // Create a job service client so we call the methods in the job service e.g. createjob etc var jobSvc = new KTA_JobServices.JobServiceClient(); // Set up variables for the CreateJob method. Create job requires sessionid, process identity, and process initialization variables (input variables) // CreateJob method returns the Job Identity (Job Id). var procIdentity = new KTA_JobServices.ProcessIdentity(); var jobInit = new KTA_JobServices.JobInitialization(); // These variables are used for the return object (job identity) var jobIdentity = new KTA_JobServices.JobIdentity(); // This is the process identity of the Loan Application API process. This Id was obtained by running a select * from the Business_Process table procIdentity.Id = process_ID; logger.LogDebug($"procIdentity.Id {procIdentity.Id}"); if (inputVarCollection == null) { inputVarCollection = new KTA_JobServices.InputVariableCollection(); // Set up each inputvariable to job (process initialization variables) // Must use the ID of the variable in the process, not its display name KTA_JobServices.InputVariable id = new KTA_JobServices.InputVariable(); logger.LogDebug($"KTA_JobServices.InputVariable id {id.Id}"); id.Id = "REQUESTID"; id.Value = requestNumber; inputVarCollection.Add(id); } // Populate the InputVariables to the job jobInit.InputVariables = inputVarCollection; // Create the job, passing the session id, process identity and inputvariables. A job identity object containing the job id(string) is returned // from the method call jobIdentity = await jobSvc.CreateJobAsync(sessionId, procIdentity, jobInit); logger.LogDebug($"Create Job Identity jobId fired {jobIdentity.Id}"); // Return the job i return(jobIdentity.Id); }
public async Task <IEnumerable <PassedItems> > LoadITcareRequests(string email) { IEnumerable <PassedItems> MyRequests = null; _logger.LogDebug($"Connect to AD Service and get data for {email}"); var emp = await _adserviec.GetDataFromAD(email).ConfigureAwait(false); if (emp != null) { _logger.LogDebug($"Connect to ITCare Rest Service and get requests for {email}"); MyRequests = _itcareService.LoadITCareRequests(emp.FullName); } return(MyRequests); }
/// <summary> /// Logging debug when tranfer is finish. /// </summary> /// <param name="evfData"></param> private void LogTranferData(IEnumerable <VendorTransaction> vendorTransections) { foreach (var item in vendorTransections) { _logger.LogDebug($"ReceiptDate : {item.ReceiptDate}, Vendor : {item.Vendor}, MaterialCode : {item.MaterialCode}, PurorgCode : {item.PurorgCode}, PurgropCode : {item.PurgropCode}"); } }
private void RegisterLog() { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); }
public IEnumerable <WeatherForecast> Get() { try { _loggerManager.LogEnter(); _loggerManager.LogDebug("Log Debug"); _loggerManager.LogInformation("Log info"); _loggerManager.LogWarning("Log warning"); int i = 5; int d = 0; //Console.WriteLine((i / d).ToString()); var rng = new Random(); return(Enumerable.Range(1, 5).Select(index => new WeatherForecast { Date = DateTime.Now.AddDays(index), TemperatureC = rng.Next(-20, 55), Summary = Summaries[rng.Next(Summaries.Length)] }) .ToArray()); } finally { _loggerManager.LogExit(); } }
/// <summary> /// Logging debug when tranfer is finish. /// </summary> /// <param name="evfData"></param> private void LogTranferData(IEnumerable <EvaluationSapResult> evfData) { foreach (var item in evfData) { _logger.LogDebug($"ComCode : {item.ComCode}, PurOrg : {item.PurOrg}, Vendor : {item.Vendor}, WeightKey : {item.WeightKey}, YearMonth : {item.YearMonth}"); } }
public IEnumerable <string> Get() { _logger.LogInfo("Here is info message"); _logger.LogDebug("debug message"); return(new[] { "value1", "value2" }); }
public async Task <IActionResult> GetAll(CancellationToken ct) { //var ipaddress = base.GetRemoteIP(); var permission = new List <string>() { "Leader", "Teacher", "Staff", "SuperUser" }; var msg = await base.AuthenticationAndAuthorization(permission); if (msg != "Success") { return(Unauthorized()); } _logger_1.LogDebug(1, "NLog injected into HomeController"); _logger_1.LogInformation("NLog injected into HomeController"); _logger.LogInfo("Here is info message from the controller."); _logger.LogDebug("Here is debug message from the controller."); _logger.LogWarn("Here is warn message from the controller."); _logger.LogError("Here is error message from the controller."); var studinfo = await _studentService.GetAllStudentAsync(ct); if (studinfo == null) { return(NotFound()); } return(Ok(studinfo)); }
public IEnumerable <string> GetLog() { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is an error message from our values controller."); return(new string[] { "value1", "value2" }); }
public ActionResult <IEnumerable <string> > Get() { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); return(new string[] { "value1", "value2" }); }
public IActionResult Get() { _logger.LogInfo("Information"); _logger.LogError("Error"); _logger.LogDebug("Debug"); _logger.LogWarn("Warning"); return(Ok("working")); }
public ActionResult <IEnumerable <string> > Get() { loger.LogDebug("debug"); loger.LogError("Error"); loger.LogInfo("Info"); loger.LogWarn("Warn"); return(new string[] { "value1", "value2" }); }
public IEnumerable <string> Get() { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is an error message from our values controller."); return(Summaries); }
public Task <IEnumerable <LinkViewModel> > Get() { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); return(GetAllLinksInternal()); }
public IActionResult testLogger() { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); return(new ObjectResult("value1")); }
public ActionResult <string> Get(int id) { _logger.LogInfo("Here is info message from the controller."); _logger.LogDebug("Here is debug message from the controller."); _logger.LogWarn("Here is warn message from the controller."); _logger.LogError("Here is error message from the controller."); return("value ${id}"); }
public IEnumerable <string> Get() { _logger.LogInfo("Info message"); _logger.LogDebug("Debug message"); _logger.LogWarn("Warn message"); _logger.LogError("Error message"); return(new string[] { "value1", "value2" }); }
public IEnumerable <string> Get() { _logger.LogDebug("Test debug message from the controller"); _logger.LogError("Test error message from the controller"); _logger.LogWarning("Test warning message from the controller"); _logger.LogInformation("Test information message from the controller"); return(new string[] { "value1", "value2" }); }
public IEnumerable <string> Get() { _logger.LogInfo("Log Info Message"); _logger.LogDebug("Log Debug Message"); _logger.LogError("Log Error Message"); _logger.LogWarn("Log Warn Message"); return(new string[] { "Eng", "Rabeeb" }); }
public IEnumerable <string> GetLog() { //_repository.Company.AnyMethodFromCompanyRepository(); //_repository.Employee.AnyMethodFromEmployeeRepository(); _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is an error message from our values controller."); return(new string[] { "value1", "value2" }); }
public ValuesController(ILoggerManager _logger, IRepositoryWrapper repositoryWrapper) { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); this._repoWrapper = repositoryWrapper; this._logger = _logger; }
public IEnumerable <Option> Get(int id) { var options = _repoWrapper.Option.FindByCondition(o => o.ItemId.Equals(id)); _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); return(options); }
//Update when conmpletion request public async Task <ConsultationViewModel> PatchConsultationData(JsonPatchDocument <EditConsultationDataViewModel> jsonPatch, string jobId) { //if need access token ,if anonmous do not add this line await GetAccess(); logger.LogDebug("PatchConsultationData : jsonPatch , jobId ", (jsonPatch, jobId)); var response = await _restService.PatchWithReadStream <EditConsultationDataViewModel, ConsultationViewModel>(_uacClient.Client, _configuaration.PatchConsultation, jsonPatch, jobId); return(response); }
public IEnumerable <Quiz> Get() { var quizzes = _repoWrapper.Quiz.FindAll(); _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); return(quizzes); }
public ActionResult <IEnumerable <string> > Get() { _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); var users = _repositoryWrapper.User.FindAll(); return(new string[] { "value1", "value2" }); }
public IEnumerable <Users> Get() { var users = _repoWrapper.Users.FindAll(); _logger.LogInfo("Here is info message from our values controller."); _logger.LogDebug("Here is debug message from our values controller."); _logger.LogWarn("Here is warn message from our values controller."); _logger.LogError("Here is error message from our values controller."); return(users); }
public IEnumerable <string> Get() { var domesticAccounts = _repoWrapper.Account.FindByCondition(x => x.AccountType.Equals("Domestic")); var owners = _repoWrapper.Owner.FindAll(); _logger.LogInfo("Here is info message from the controller."); _logger.LogDebug("Here is debug message from the controller."); _logger.LogWarn("Here is warn message from the controller."); _logger.LogError("Here is error message from the controller."); return(new string[] { "value1", "value2" }); }