public void Test() { ElasticLogger.Configure(ELASTIC_URL, ELASTIC_INDEX, APPLICATION_ID); ElasticLogger.Debug(new LogModel() { registro_mensagem = "TESTE", registro_codigo_erro = (int)ErroEnum.RPA.FalhaDeLogin }); }
public void TestErrorSystemException() { ElasticLogger.Configure(ELASTIC_URL, ELASTIC_INDEX, APPLICATION_ID); try { throw new Exception("TESTE"); } catch (Exception e) { ElasticLogger.ErrorSystemException(new LogModel() { registro_mensagem = "TESTE", registro_codigo_erro = (int)ErroEnum.RPA.FalhaDeLogin }, e); } }
public void TestErrorBusinessRuleException() { ElasticLogger.Configure(ELASTIC_URL, ELASTIC_INDEX, APPLICATION_ID); try { throw new Exception("TESTE"); } catch (Exception e) { ElasticLogger.ErrorBusinessRuleException(new LogModel() { registro_mensagem = "TESTE", registro_codigo_erro = (int)ErroEnum.Servico.Indisponivel }, e); } }