I NetMagicPrd,
jPOS has the ability to redirect stdout and stderr to its logger. You enable that in deploy/00_logger.xml with the property:
<property name="redirect" value="stdout, stderr" />
You can remove that line and those log messages will go to the regular stdout and stderr, or you can redirect them at the operating system level, but what you probably want is to configure log4j (used by Hibernate) to change the level perhaps from INFO to WARN (you probably still want to see those WARNs).
You can do that by setting a log4j.properties file in your CLASSPATH, or by using jPOS-EE logback module. The logback module is configured like this:
<logback name="logback-config" class="org.jpos.logging.logback.LogbackConfigurator">
<property name="config-resource" value="file:cfg/logback.xml"/>
</logback>
Then in your logback.xml file you can set something like this:
<configuration scan="true" scanPeriod="30 seconds">
<!-- 'Q2' Appender -->
<appender name="Q2" class="org.jpos.logging.logback.LogbackAppender"/>
<!-- By default all messages at level ERROR will go to the 'Q2' appender -->
<root level="ERROR">
<appender-ref ref="Q2"/>
</root>
</configuration>
Interesting enough, those sample files are available in the logback module as a resource, so if you are using Gradle and jPOS file structure (as we do in the jPOS-Template project), you can try gradle installResources and the files will be created for you in the src/dist directory.
Hope this helps.
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/c8e9555f-0503-4a93-bb7d-e8598745be9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.