Skip to content

Commit

Permalink
Merge pull request #648 from caelum/ot-gh582-wildflylogging
Browse files Browse the repository at this point in the history
Adding docs about logging under JBoss Wildfly
  • Loading branch information
garcia-jj committed Jul 4, 2014
2 parents df3593c + 4911e59 commit 323e4a9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
24 changes: 24 additions & 0 deletions vraptor-site/content/en/docs/dependencies-and-prerequisites.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,30 @@
</log4j:configuration>
~~~


**Notice:** If you is deploying you application into Wildfly, you need to
configure logging in the `standalone.xml` file (or in `domain.xml` if
you is running in domain mode):

~~~
#!xml
<subsystem xmlns="urn:jboss:domain:logging:2.0">
<logger category="br.com.caelum.vraptor">
<level name="DEBUG"/>
</logger>
</subsystem>
~~~

But if you want to use configuration inside your application, you can
tell to Wildfly to read this configuration from your deployment:

~~~
#!xml
<subsystem xmlns="urn:jboss:domain:logging:2.0">
<use-deployment-logging-config value="false"/>
</subsystem>
~~~

## XStream and Gson

XStream and Gson are used to serialize/deserialize XML and JSON
Expand Down
23 changes: 23 additions & 0 deletions vraptor-site/content/pt/docs/dependencias-e-pre-requisitos.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,29 @@
</log4j:configuration>
~~~

**Nota:** Se você está fazendo deploy de sua aplicação no Wildfly, você precisará configurar o logging no arquivo `standalone.xml` (ou no `domain.xml` se você estiver executando em modo domain):

~~~
#!xml
<subsystem xmlns="urn:jboss:domain:logging:2.0">
<logger category="br.com.caelum.vraptor">
<level name="DEBUG"/>
</logger>
<!-- restante do conteúdo -->
</subsystem>
~~~

Porém se você preferir usar as configurações dentro de sua aplicação usando exemplo de `log4j.xml` acima, você pode indicar ao Wildfly para que ele considere a configuração na aplicação:

~~~
#!xml
<subsystem xmlns="urn:jboss:domain:logging:2.0">
<use-deployment-logging-config value="false"/>
<!-- restante do conteúdo -->
</subsystem>
~~~


## XStream e Gson

São utililizadas para serialização e deserialização XML e JSON respectivamente. Ambas são opcionais, ou seja, se você não usar os recursos de serialização e deserialização, você pode removê-los do classpath. Atualmente elas já vêm com a dependência do VRaptor no Maven e você não precisa declarar as dependências.
Expand Down

0 comments on commit 323e4a9

Please sign in to comment.