From 914097ad0d87bc92641db92de7b0f3914b37fd1f Mon Sep 17 00:00:00 2001 From: Rafael Coutinho Date: Fri, 25 Sep 2015 16:58:24 -0300 Subject: [PATCH] Suporte a categoria de logger br.gov.mj.sislegis --- .../mj/sislegis/app/parser/senado/ParserPlenarioSenado.java | 4 +++- src/main/resources/META-INF/MANIFEST.MF | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/META-INF/MANIFEST.MF diff --git a/src/main/java/br/gov/mj/sislegis/app/parser/senado/ParserPlenarioSenado.java b/src/main/java/br/gov/mj/sislegis/app/parser/senado/ParserPlenarioSenado.java index e538e73e..bb07cf36 100644 --- a/src/main/java/br/gov/mj/sislegis/app/parser/senado/ParserPlenarioSenado.java +++ b/src/main/java/br/gov/mj/sislegis/app/parser/senado/ParserPlenarioSenado.java @@ -3,6 +3,8 @@ import java.net.URL; import java.util.ArrayList; import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; import br.gov.mj.sislegis.app.enumerated.Origem; import br.gov.mj.sislegis.app.model.Proposicao; @@ -31,7 +33,7 @@ public List getProposicoes(String datIni) throws Exception { String wsURLPlenario = "http://legis.senado.leg.br/dadosabertos/plenario/agenda/mes/"+datIni; URL url = new URL(wsURLPlenario); - + Logger.getLogger("br.gov.mj.sislegis").log(Level.FINE, "Buscando dados da sessão do plenario"); xstreamSessao.fromXML(url, agendaPlenario); List sessoes = agendaPlenario.getSessoes(); diff --git a/src/main/resources/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 00000000..b5a19f96 --- /dev/null +++ b/src/main/resources/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 +Logging-Profile: br.gov.mj.sislegis \ No newline at end of file