Produto: | TOTVS Varejo Franquias e Redes |
---|---|
Linha de Produto: | Franquias e Redes |
Segmento: | Varejo |
Módulo: | TOTVS PDV Omnishop |
Função: | Log |
País: | Brasil |
Ticket: | |
Requisito/Story/Issue (informe o requisito relacionado) : | DVARLIVEPDV-17987 |
No PDV e na API, foi padronizado o uso do log com a ferramenta Serilog.
No PDV, o log foi adicionado nos processos de fechamento de venda.
Na API, foi alterado o método atual do logs da aplicação, automatizando o a subida de logs para a solução Log Centralizado.
Com o uso da ferramenta Serilog, os logs são gerados e enviados por meio de fila e empacotamento.
Log gerado ao simular e finalizar uma venda no PDV
[ { "timestamp": "2023-02-20T17:20:33.1179324Z", "message": "Tempo Fechamento Venda {@ProcessarVenda}", "level": 30, "processarVenda": { "NumeroVenda": "62406", "SerieVenda": "62406", "Tempo": "-00:00:20.1686267", "DataHora": "20/02/2023 14:20:33", "CodigoIdentificacaoLoja": "111717481", "NomeDispositivo": "PDV01DEBUGGER", "Pdv": "7", "IdCaixa": "1", "VersaoAPP": "3.3.4.0" }, "sourceContext": "TOTVS.Omnishop", "application": "TOTVS PDV Omni Desktop", "stackCaller": { "Class": "TOTVS.Omnishop.Core.Helpers.VendaHelper", "MethodName": "ProcessarVenda", "MethodParameters": "", "Caller": "TOTVS.Omnishop.Core.Helpers.VendaHelper.ProcessarVenda()", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "ad96432b-fd30-4c41-a421-887a8a28d964", "area": "Franquias e Redes", "software": "PDV Omnishop", "habilitarLogCentralizado": "true", "clientId": "82373077000171", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.PDV.Omnishop\\TOTVS.Omnishop.Forms\\TOTVS.Omnishop.Forms.UWP\\bin\\x64\\Debug\\AppX", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 10.0.19042.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "Windows Domain", "UserName": "Windows User", "CLRVersion": "4.0.30319.42000", "NomeDispositivo": "PDV01DEBUGGER", "Rede": "Default", "CodigoIdentificacaoLoja": "111717481", "Pdv": "7", "IdCaixa": "1", "Producao": false, "Versao": "3.3.4.0", "IdDispositivo": "3", "Cnpj": "82373077000171", "Servidor": "http://192.168.1.108:9000/TotvsPDV/", "ServidorFiscal": "http://192.168.1.108:9000/TotvsPDV/", "IdPreVenda": "229", "$type": "LogDeviceDataEnricherModel" }, "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15" }, { "timestamp": "2023-02-20T17:20:33.1383822Z", "message": "Descontos Fechamento Venda {@VendaDescontos}", "level": 30, "vendaDescontos": [ { "Acrescimo": false, "IdVenda": null, "IdVendaItem": null, "Complemento": null, "DataCadastro": "0001-01-01T00:00:00.0000000", "DataAtualizacao": "0001-01-01T00:00:00.0000000", "DescricaoMotivo": "Promoção Dimitri", "IdMotivo": 5192, "ItemTotal": 0, "Pontos": 0, "Situacao": 1, "Valor": -7.69, "IdRetaguarda": "b488dd2f-8fa9-4acb-8a01-4c801f187e2c", "TipoDesconto": "Motor", "$type": "VendaDescontoModel" } ], "sourceContext": "TOTVS.Omnishop", "application": "TOTVS PDV Omni Desktop", "stackCaller": { "Class": "TOTVS.Omnishop.Core.Helpers.VendaHelper", "MethodName": "ProcessarVenda", "MethodParameters": "", "Caller": "TOTVS.Omnishop.Core.Helpers.VendaHelper.ProcessarVenda()", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "202a7e39-f0cd-45c6-9810-8e3840485b08", "area": "Franquias e Redes", "software": "PDV Omnishop", "habilitarLogCentralizado": "true", "clientId": "82373077000171", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.PDV.Omnishop\\TOTVS.Omnishop.Forms\\TOTVS.Omnishop.Forms.UWP\\bin\\x64\\Debug\\AppX", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 10.0.19042.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "Windows Domain", "UserName": "Windows User", "CLRVersion": "4.0.30319.42000", "NomeDispositivo": "PDV01DEBUGGER", "Rede": "Default", "CodigoIdentificacaoLoja": "111717481", "Pdv": "7", "IdCaixa": "1", "Producao": false, "Versao": "3.3.4.0", "IdDispositivo": "3", "Cnpj": "82373077000171", "Servidor": "http://192.168.1.108:9000/TotvsPDV/", "ServidorFiscal": "http://192.168.1.108:9000/TotvsPDV/", "IdPreVenda": "229", "$type": "LogDeviceDataEnricherModel" }, "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15" }, { "timestamp": "2023-02-20T17:20:33.1571173Z", "message": "Pagamentos Fechamento Venda {@VendaPagamentos}", "level": 30, "vendaPagamentos": [ { "CpfCnpjCliente": null, "DataAtualizacao": "0001-01-01T00:00:00.0000000", "DataCadastro": "0001-01-01T00:00:00.0000000", "Descricao": null, "FormaPagamento": { "BandeiraCartao": null, "CNPJIdentificacaoPagamento": null, "Codigo": "", "CodigoAutorizacao": null, "Condicao": "à vista", "CondicaoPagamento": null, "CpfCnpjCliente": null, "DadosComplementares": null, "DataHoraPagamento": "2023-02-20T14:20:07.5531234-03:00", "Descricao": "Dinheiro", "DiasEntreParcelas": 0, "EfetuadoCancelamentoDigital": false, "FormaPagamentoMestre": { "BtHabilitado": true, "CorBotao": { "IsDefault": true, "A": 0, "R": 0, "G": 0, "B": 0, "Hue": 0, "Saturation": 0, "Luminosity": 0, "$type": "Color" }, "CorTexto": { "IsDefault": true, "A": 0, "R": 0, "G": 0, "B": 0, "Hue": 0, "Saturation": 0, "Luminosity": 0, "$type": "Color" }, "Descricao": "Dinheiro", "FormasPagamentos": [ { "Codigo": "", "CodigoFiscal": "01", "Descricao": "DINHEIRO", "DescricaoFiscal": "DINHEIRO", "FormaPermitePagamentoValorTotal": true, "FormaPermiteTroco": true, "Id": 9, "IdFormaPagamentoTroco": 9, "IdRetaguarda": null, "PagamentosFormasCondicoes": null, "PagamentosFormasDadosComplementares": null, "PagamentosFormasModelosFiscais": null, "PagamentosFormasOperadoras": null, "PagamentoValorTotal": 1, "PermiteTroco": 1, "Tipo": "Dinheiro", "ValorMinimoAceito": 0.0, "$type": "TipoFormaPagamentoModel" } ], "IdRetaguarda": null, "PermitePagamentoValorTotal": true, "PermiteTroco": true, "Tipo": "Dinheiro", "ValorMinimoAceito": 0.0, "$type": "FormaPagamentoMestreModel" }, "Id": 9, "IdCondicao": null, "IdOperadora": null, "IdRetaguarda": null, "IdTroca": null, "IndicePagamento": null, "MelhorDiaVencimentoParcela": 0, "NomeCliente": null, "PagamentoTef": [], "Parcelas": null, "PermitePagamentoValorTotal": true, "PermiteTroco": true, "QuantidadeParcelas": 0, "Tipo": "Dinheiro", "TipoIntegracaoCartao": null, "Valor": 69.21, "ValorMinimoAceito": 0.0, "ValorTela": "R$ 69,21", "ValorTrocoCartao": null, "CallBackCommand": null, "Vm": null, "IsFormaPgtoCreditoDevolucao": false, "$type": "VendaFormasPagamentoModel" }, "Id": null, "IdDivida": null, "IdPagamentoCondicao": null, "IdPagamentoForma": 9, "IdPagamentoOperadora": null, "IdRetaguarda": "08240fe5-117a-420b-8b41-790bfedebfcd", "IdRetaguardaCredito": null, "IdTroca": null, "IdVenda": 0, "MD5PAF": null, "NomeCliente": null, "QuantidadeParcelas": 0, "Situacao": 1, "Tipo": null, "ValorLiquido": 69.21, "ValorPago": 69.21, "ValorTroco": 0, "VendaPagamentoDadosComplementares": null, "VendaPagamentoItens": null, "VendaPagamentoTefs": [], "$type": "VendaPagamentoModel" } ], "sourceContext": "TOTVS.Omnishop", "application": "TOTVS PDV Omni Desktop", "stackCaller": { "Class": "TOTVS.Omnishop.Core.Helpers.VendaHelper", "MethodName": "ProcessarVenda", "MethodParameters": "", "Caller": "TOTVS.Omnishop.Core.Helpers.VendaHelper.ProcessarVenda()", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "0fbc9dcc-cb72-4d4c-a0d7-10760e6986a4", "area": "Franquias e Redes", "software": "PDV Omnishop", "habilitarLogCentralizado": "true", "clientId": "82373077000171", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.PDV.Omnishop\\TOTVS.Omnishop.Forms\\TOTVS.Omnishop.Forms.UWP\\bin\\x64\\Debug\\AppX", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 10.0.19042.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "Windows Domain", "UserName": "Windows User", "CLRVersion": "4.0.30319.42000", "NomeDispositivo": "PDV01DEBUGGER", "Rede": "Default", "CodigoIdentificacaoLoja": "111717481", "Pdv": "7", "IdCaixa": "1", "Producao": false, "Versao": "3.3.4.0", "IdDispositivo": "3", "Cnpj": "82373077000171", "Servidor": "http://192.168.1.108:9000/TotvsPDV/", "ServidorFiscal": "http://192.168.1.108:9000/TotvsPDV/", "IdPreVenda": "229", "$type": "LogDeviceDataEnricherModel" }, "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15" }, { "timestamp": "2023-02-20T17:20:33.8776270Z", "message": "COMMAND DesktopPagamentoViewModel.ConfirmarPagamento - ExecutionDuration: 21495 ms", "level": 10, "sourceContext": "ConfirmarPagamento", "application": "TOTVS PDV Omni Desktop", "stackCaller": { "Class": "TOTVS.Omnishop.Core.ViewModels.DesktopPagamentoViewModel", "MethodName": "ConfirmarPagamento", "MethodParameters": "", "Caller": "TOTVS.Omnishop.Core.ViewModels.DesktopPagamentoViewModel.ConfirmarPagamento()", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "7ff459e2-0c20-4378-a9bb-494ddb3a3318", "area": "Franquias e Redes", "software": "PDV Omnishop", "habilitarLogCentralizado": "true", "clientId": "82373077000171", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.PDV.Omnishop\\TOTVS.Omnishop.Forms\\TOTVS.Omnishop.Forms.UWP\\bin\\x64\\Debug\\AppX", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 10.0.19042.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "Windows Domain", "UserName": "Windows User", "CLRVersion": "4.0.30319.42000", "NomeDispositivo": "PDV01DEBUGGER", "Rede": "Default", "CodigoIdentificacaoLoja": "111717481", "Pdv": "7", "IdCaixa": "1", "Producao": false, "Versao": "3.3.4.0", "IdDispositivo": "3", "Cnpj": "82373077000171", "Servidor": "http://192.168.1.108:9000/TotvsPDV/", "ServidorFiscal": "http://192.168.1.108:9000/TotvsPDV/", "IdPreVenda": "", "$type": "LogDeviceDataEnricherModel" }, "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15" } ]
[ { "timestamp": "2023-02-20T17:20:28.5949778Z", "message": "Iniciou criar venda no banco de dados. Número da Venda: 62406, Série: 628", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "e5c4fac8-29d3-4b8e-b63a-3f566cd5b98d", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:28.6005035Z", "message": "Objeto VendaDto enviado para criar a venda no banco de dados: {@vendaDto}", "level": 30, "vendaDto": { "Ccf": "62406", "Coo": "62406", "VendaData": "2023-02-20T14:20:28.5929493-03:00", "IdTransacaoFidelidade": null, "NumeroPdv": "7", "NumeroReducaoZ": null, "SituacaoVenda": "Finalizada", "ValorLiquido": 69.21, "ValorBruto": 76.9, "ValorDescontoAcrescimo": null, "IdMotivo": null, "IdCaixa": "1", "IdImpressoraSat": 1, "SincronizadoVenda": 0, "SincronizadoCancelamento": 0, "SincronizadoFidelidade": 0, "IdentificacaoCliente": null, "NomeCliente": null, "EmailCliente": null, "IdentificacaoFidelidade": null, "CpfCnpjConsumidor": "", "NomeConsumidor": null, "EnderecoConsumidor": null, "IdOperador": 1, "ChaveAcesso": "13230282373077000171656280000624061404470805", "IdPreVenda": 229, "SerieNota": 628, "TipoVenda": "Produto", "ModeloFiscal": "NFCe", "CepConsumidor": null, "NumeroConsumidor": null, "ComplementoConsumidor": null, "BairroConsumidor": null, "CidadeConsumidor": null, "EstadoConsumidor": null, "PromocaoMotor": 0, "PromocaoSms": 0, "CampanhaPromocional": 0, "CodigoPromocional": "", "IdCampanhaPromocional": null, "IdTransacaoMotorPromocaoTerceiro": null, "IdCanalVenda": "85b1c58e-2df4-4442-82ce-a7a3e87a56e7", "IdPedidoOmni": null, "NumeroPedidoOmni": null, "ModalidadeVenda": null, "Md5Paf": null, "SistemaPdv": "PDVOmnishop", "LimiteCompra": null, "VersaoPDV": "3.3.4.0", "Faturamento": false, "IdRetaguardaCredito": null, "Usuario": null, "VendaDescontosAcrescimos": [ { "IdVenda": null, "IdVendaItem": null, "Valor": -7.69, "IdMotivo": 5192, "ItemTotal": 0, "Complemento": null, "DescricaoMotivo": "Promoção Dimitri", "Pontos": 0, "Id": null, "IdRetaguarda": "b488dd2f-8fa9-4acb-8a01-4c801f187e2c", "Situacao": 1, "DataCadastro": "0001-01-01T00:00:00.0000000", "DataAtualizacao": "0001-01-01T00:00:00.0000000", "Expandables": [], "$type": "VendaDescontoAcrescimoDto" } ], "VendaItens": [ { "IdVenda": null, "Qtde": 1.0, "Sequencia": 1, "ValorUnitario": 76.9, "ValorTotal": 76.9, "ValorDescontoAcrescimo": 0, "IdMotivoDescontoAcrescimo": null, "IdProduto": 5615, "Descricao": "10042747 creme anti rugas", "IdVendedor": 1, "Status": 0, "ValorLiquido": 76.9, "IdProdutoKit": null, "CodigoNcm": "33049910", "AliquotaTributo": 0, "UnidadeMedida": "UN", "Md5Paf": null, "CodigoProduto": "10011109", "Venda": null, "Usuario": null, "Descontos": [], "Id": null, "IdRetaguarda": "06139351-5468-4fb8-a40c-7390ff595aa7", "Situacao": 1, "DataCadastro": "0001-01-01T00:00:00.0000000", "DataAtualizacao": "0001-01-01T00:00:00.0000000", "Expandables": [], "$type": "VendaItemDto" } ], "VendaPagamentos": [ { "IdVenda": 0, "IdPagamentoForma": 9, "IdPagamentoCondicao": null, "IdPagamentoOperadora": null, "IdRetaguardaCredito": null, "ValorPago": 69.21, "ValorTroco": 0, "ValorLiquido": 69.21, "IdTroca": null, "CpfCnpjCliente": null, "QuantidadeParcelas": 0, "IdDivida": null, "IdPagamentoMfe": null, "SincronizadoPagamentoMfe": null, "Md5Paf": null, "Descricao": null, "IdPreVenda": null, "Venda": null, "VendaPagamentoDadosComplementares": null, "VendaPagamentoItens": null, "VendaPagamentoTefs": [], "Id": null, "IdRetaguarda": "08240fe5-117a-420b-8b41-790bfedebfcd", "Situacao": 1, "DataCadastro": "0001-01-01T00:00:00.0000000", "DataAtualizacao": "0001-01-01T00:00:00.0000000", "Expandables": [], "$type": "VendaPagamentoDto" } ], "Id": null, "IdRetaguarda": "3945ccac-c666-41d8-9f33-89de191f6d6f", "Situacao": 1, "DataCadastro": "0001-01-01T00:00:00.0000000", "DataAtualizacao": "0001-01-01T00:00:00.0000000", "Expandables": [], "$type": "VendaDto" }, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "34920a9d-9084-47fd-8f2a-ea3c9d404f36", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:28.9569274Z", "message": "Venda criada, IdVenda: 105, Número da Venda: 62406, Série: 628", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "1c27df53-84ea-4564-ad98-41fb914b9af9", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:29.2456456Z", "message": "Itens gravados, IdVenda: 105, Qtde. Itens: 1", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "14e63a2e-295d-493b-96e2-5cbb55504e20", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:29.3852468Z", "message": "Pagamentos gravados, IdVenda: 105, Qtde. Pagamentos: 1", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "5bc6d82e-7d32-4c69-9d16-1aae4c443767", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:29.7475325Z", "message": "Finalizou criar venda no banco de dados. IdVenda: 105, Número da Venda: 62406, Série: 628", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "abd80232-a465-486d-9a79-d32dd3062e0e", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:29.7551072Z", "message": "Atualizar IdRetaguardaPreVenda", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "dc14b1fd-501b-47fd-8f02-1ada1fc60f4b", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:29.9013907Z", "message": "Salvar XML da venda", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "555afb2f-67bf-4d42-bb1a-6a201ec67913", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:30.1065009Z", "message": "NfceEnviarResponseDto: {@enviarResponseDto}", "level": 30, "enviarResponseDto": { "AmbienteHomologacao": true, "Cancelado": false, "ChaveConsulta": "13230282373077000171656280000624061404470805", "CodigoRetorno": "100", "Contingencia": false, "CPFCNPJ": "", "DataAtualizacao": "2023-02-20T14:20:28.5128562-03:00", "DataAutorizacao": "20/02/2023 14:20:25", "DataTransmissao": "20230220", "DescricaoRetorno": null, "DetalhesImpressao": null, "EnviarContingenciaRetaguarda": false, "EnviarRetaguarda": true, "ExigeConsumidor": false, "HoraTransmissao": "142025", "IdPreVenda": null, "Impresso": false, "Imprimir": false, "Inutilizado": false, "MensagemComplementar": "\r\nOBSERVACOES DO CONTRIBUINTE Trib Aprox: R$ 21,79 Fed, 17,30 Est, 0,00 Mun, Total R$ 39,09 Fonte IBPT/empresometro.com.br 0EBB1B Vend: Usuário Padrão ", "ModoContingencia": false, "NotaInutilizada": false, "NumeroNota": "62406", "NumeroNotaContingencia": null, "NumeroPDV": null, "Online": false, "Processado": true, "Processar": false, "ProtocoloAutorizacao": "113230010444930", "QrCode": "https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp?p=13230282373077000171656280000624061404470805|2|2|1|6C0E947616880596266CCD02BA7F6BEFB3F15812", "Rejeitado": false, "SerieNota": "628", "SerieNotaContingencia": null, "VendaImpressao": null, "ViradaContingencia": false, "XmlRetorno": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><nfeProc versao=\"4.00\" xmlns=\"http://www.portalfiscal.inf.br/nfe\" ><NFe><infNFe versao=\"4.00\" Id=\"NFe13230282373077000171656280000624061404470805\"><ide><cUF>13</cUF><cNF>40447080</cNF><natOp>VENDA</natOp><mod>65</mod><serie>628</serie><nNF>62406</nNF><dhEmi>2023-02-20T14:20:14-03:00</dhEmi><tpNF>1</tpNF><idDest>1</idDest><cMunFG>1302603</cMunFG><tpImp>4</tpImp><tpEmis>1</tpEmis><cDV>5</cDV><tpAmb>2</tpAmb><finNFe>1</finNFe><indFinal>1</indFinal><indPres>1</indPres><indIntermed>0</indIntermed><procEmi>0</procEmi><verProc>1.0.0.0</verProc></ide><emit><CNPJ>82373077000171</CNPJ><xNome>ELEGANCIA COMERCIO DE PERFUMES E COSMETICOS EIRELI</xNome><xFant>LOJA 0059 - ELEGANCIA PERFUMES / SP</xFant><enderEmit><xLgr>R SAO JUDAS TADEU</xLgr><nro>65</nro><xBairro>CENTRO</xBairro><cMun>1302603</cMun><xMun>MANAUS</xMun><UF>AM</UF><CEP>09911100</CEP><cPais>1058</cPais><xPais>Brasil</xPais></enderEmit><IE>999999990</IE><CRT>1</CRT></emit><det nItem=\"1\"><prod><cProd>10011109</cProd><cEAN>SEM GTIN</cEAN><xProd>NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xProd><NCM>33049910</NCM><CEST>2001400</CEST><indEscala>N</indEscala><CNPJFab>00223046000170</CNPJFab><CFOP>5405</CFOP><uCom>UN</uCom><qCom>1.0000</qCom><vUnCom>76.9000</vUnCom><vProd>76.90</vProd><cEANTrib>SEM GTIN</cEANTrib><uTrib>UN</uTrib><qTrib>1.0000</qTrib><vUnTrib>76.9000</vUnTrib><vDesc>7.69</vDesc><indTot>1</indTot></prod><imposto><vTotTrib>39.09</vTotTrib><ICMS><ICMSSN500><orig>0</orig><CSOSN>500</CSOSN></ICMSSN500></ICMS></imposto></det><total><ICMSTot><vBC>0.00</vBC><vICMS>0.00</vICMS><vICMSDeson>0.00</vICMSDeson><vFCP>0.00</vFCP><vBCST>0.00</vBCST><vST>0.00</vST><vFCPST>0.00</vFCPST><vFCPSTRet>0.00</vFCPSTRet><vProd>76.90</vProd><vFrete>0.00</vFrete><vSeg>0.00</vSeg><vDesc>7.69</vDesc><vII>0.00</vII><vIPI>0.00</vIPI><vIPIDevol>0.00</vIPIDevol><vPIS>0.00</vPIS><vCOFINS>0.00</vCOFINS><vOutro>0.00</vOutro><vNF>69.21</vNF><vTotTrib>39.09</vTotTrib></ICMSTot></total><transp><modFrete>9</modFrete></transp><pag><detPag><indPag>0</indPag><tPag>01</tPag><vPag>69.21</vPag></detPag><vTroco>0.00</vTroco></pag><infAdic><infCpl>OBSERVACOES DO CONTRIBUINTE Trib Aprox: R$ 21,79 Fed, 17,30 Est, 0,00 Mun, Total R$ 39,09 Fonte IBPT/empresometro.com.br 0EBB1B Vend: Usuario Padrao</infCpl></infAdic></infNFe><infNFeSupl><qrCode><![CDATA[https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp?p=13230282373077000171656280000624061404470805|2|2|1|6C0E947616880596266CCD02BA7F6BEFB3F15812]]></qrCode><urlChave>http://sistemas.sefaz.am.gov.br/nfceweb-hom/formConsulta.do</urlChave></infNFeSupl><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"/><SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"/><Reference URI=\"#NFe13230282373077000171656280000624061404470805\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"/><Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"/></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1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ao=\"4.00\"><infProt><tpAmb>2</tpAmb><verAplic>AM3.10-4.00</verAplic><chNFe>13230282373077000171656280000624061404470805</chNFe><dhRecbto>2023-02-20T14:20:25-03:00</dhRecbto><nProt>113230010444930</nProt><digVal>315qDID3tqiTLyrKapvZJy+chSQ=</digVal><cStat>100</cStat><xMotivo>Autorizado o uso da NF-e</xMotivo></infProt></protNFe></nfeProc>", "Id": 105, "Erros": null, "Sucesso": true, "$type": "NfceEnviarResponseDto" }, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "52143a3b-06a5-49f2-9914-b39ff2ab1e91", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:30.1157037Z", "message": "Finalizou integração com fiscal da venda.", "level": 30, "sourceContext": "ProcessamentoVenda", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "eb02c10f-019f-4344-9cdb-8fda7af0771d", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:30.1332678Z", "message": "AUDIT LOG: /api/nfce/enviar {@auditInfo}", "level": 30, "auditInfo": "Capturing the property value threw an exception: ObjectDisposedException", "sourceContext": "TOTVS.Omnishop.API.Auditing", "x-Correlation-Id": "c58db558da8140638e758ff1b4c51b96", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "c7a0a386-2b17-40c6-b3fc-cfa14058f92a", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:31.0272532Z", "message": "AUDIT LOG: /api/prevenda/229 {@auditInfo}", "level": 30, "auditInfo": "Capturing the property value threw an exception: ObjectDisposedException", "sourceContext": "TOTVS.Omnishop.API.Auditing", "x-Correlation-Id": "d88170909dfb4c508c888c0ec8f54619", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "9e1bca8b-752d-481c-a140-596783922975", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } }, { "timestamp": "2023-02-20T17:20:31.5926133Z", "message": "Início impressão", "level": 30, "sourceContext": "TOTVS.Omnishop.API.Impressao", "x-Correlation-Id": "47c1d21003064e1db6ae600dec84cb15", "application": "TOTVS API Omnishop", "stackCaller": { "Class": "System.Threading.Tasks.Dataflow.ActionBlock`1", "MethodName": "ProcessMessage", "MethodParameters": " action, messageWithId", "Caller": "System.Threading.Tasks.Dataflow.ActionBlock`1.ProcessMessage( action, messageWithId)", "LineNumber": 0, "$type": "LogCallerDataEnricherModel" }, "spanId": "defabfa7-cfb4-4278-96ef-8dc799762295", "area": "Franquias e Redes", "software": "PDV Omnishop", "enableLogCentralizado": "true", "deviceInfo": { "CurrentDirectory": "C:\\Users\\raimundo.farrapo\\Documents\\Desenvolvimento\\TFR\\TOTVS.API.Omnishop\\TOTVS.Omnishop.API\\src\\TOTVS.Omnishop.API.WebApi", "MachineName": "SPON010116548", "OSVersion": "Microsoft Windows NT 6.2.9200.0", "ProcessorCount": "8", "SystemDirectory": "C:\\Windows\\system32", "UserDomainName": "SP01", "UserName": "raimundo.farrapo", "CLRVersion": "3.1.31", "CodigoIdentificacaoLoja": null, "Cnpj": null, "$type": "LogDeviceDataEnricherModel" } } ]
Algumas informações básicas são geradas automaticamente na API e no PDV para identificar o ambiente de execução, além de algumas informações de níveis de log. Nos exemplos acima, é possível notar a lista de logs gerados em uma única requisição a api de Log Centralizado.
Habilitar e desabilitar o envio dos logs.
Configuração do sistema, aba Parâmetros, ativa e desativa o envio de logs na opção Habilitar Log Centralizado, sem necessidade de reinicio da aplicação na API e para o terminal do PDV em uso onde a configuração foi realizada.
Credenciais Log Centralizado
A esteira de deploy irá preencher o arquivo appsettings.json do PDV e da API com as credenciais automaticamente.