# Can't change logging level for TransportClient under JBoss

**URL:** <https://discuss.elastic.co/t/cant-change-logging-level-for-transportclient-under-jboss/13748>\
**Category:** Elasticsearch\
**Created:** [September 25, 2013, 11:02am UTC](https://discuss.elastic.co/t/cant-change-logging-level-for-transportclient-under-jboss/13748 "2013-09-25T11:02:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://discuss.elastic.co/u/Adam)\
**Post date:** [September 25, 2013, 11:02am UTC](https://discuss.elastic.co/t/cant-change-logging-level-for-transportclient-under-jboss/13748/1 "2013-09-25T11:02:48Z")

</div>

We get INFO level messages for org.elasticsearch to the jboss server.log. But when I try to change the level to DEBUG, via jboss-logging.xml

```
<logger category="org.elasticsearch">
    <level name="DEBUG" />
</logger>

```

we still only get INFO level messages (other category DEBUG show up in the log).  
Please help this is extremely frustrating trying to trouble shoot connectivity issues for the TransportClient!

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [September 26, 2013, 1:09am UTC](https://discuss.elastic.co/t/cant-change-logging-level-for-transportclient-under-jboss/13748/2 "2013-09-26T01:09:52Z")

</div>

You can't set Elasticsearch logging from jboss-logging.xml

Elasticsearch uses log4j and is using an internal log4j configurator.

Unfortunately, the TransportClient is missing log configuration.

To configure logging for the TransportClient, try the following steps:

- copy your custom log4j configuration settings into a file logging.yml  
(optionally logging.json or logging.properties)

- take the Settings object from the TransportClient initialization, and add  
a path.conf setting to the directory where you have placed the file from  
the previous step

- after TransportClient initialization, add a line  
LogConfigurator.configure(settings); in your code. The LogConfigurator is  
in the package org.elasticsearch.common.logging.log4j

Do not forget to add log4j (optionally slf4j-log4j) to your classpath.

Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:14am UTC](https://discuss.elastic.co/t/cant-change-logging-level-for-transportclient-under-jboss/13748/3 "2017-07-06T02:14:39Z")

</div>


