Orbeon logging to stderr when run in Wildfly 11

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Orbeon logging to stderr when run in Wildfly 11

bwallis42
This post was updated on .
I'm failing to get the logging to work the way I would like while orbeon is
running in Wildfly.

Wildfly supplies the logging interface and configures it for you so I don't
want Orbeon attempting to configure the logging, I just want orbeon to use
the supplied logging subsystem (which is effectively log4j)

So I have the following configuration setup

    <property as="xs:anyURI" name="oxf.log4j-config" value=""/>
    <property as="xs:string" name="oxf.initialize-logging" value="false"/>

I also have this set to make sure I'm not getting additional debug logging.

    <property as="xs:NMTOKENS" name="oxf.xforms.logging.debug" value="" />

Now I am getting all the appropriate logging in the wildfly managed log file
but I am also getting a copy of all the logging sent to stderr. I am running
my appserver from systemd and it's default behaviour is to send this logging
to /var/log/messages which is now getting rather full :-)

I see that LoggerFactory.java does an initialisation of log4j to add a
console appender writing to stderr in initBasicLogger(). This is called from
Orbeon.scala but from within an if that should avoid calling it if
oxf.initialize-logging is set to "false" (as I have set it). The only other
calls to it I see are from OPS.java and ResourceManagerSupport.scala which i
don't think are called at runtime.

Any suggestions about what I'm missing?

thanks
brian...




--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+unsubscribe@googlegroups.com.
To post to this group, send email to orbeon@googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon logging to stderr when run in Wildfly 11

bwallis42
When I use 'raw' tags to embed code in these messages they seem to disappear
along with the code when I post the message. They look fine in the preview
though.

I'm sure this didn't used to happen.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon logging to stderr when run in Wildfly 11

Alessandro  Vernet
Administrator
Hi Brian,

We've most likely never tried that setup, so I am not terribly surprised
logging doesn't work exactly the way you want. I'd recommend you debug the
code, and if you have a change that works for you, feel free to submit a
pull request.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon logging to stderr when run in Wildfly 11

bwallis42
Turns out it was my fault with a mis-configuration.

We merge your web.xml into our own (which has some additions security
settings for our environment) and at some point we ended up with two
oxf.initialize-logging settings. The first was set to 'false' but the second
one was 'true' and that one won.

Once I removed it then the logging started to behave.

thanks
brian...


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon logging to stderr when run in Wildfly 11

Alessandro  Vernet
Administrator
Excellent Brian, I am glad this logging issue had a simple solution, as
sometimes dealing with how Log4j in the web app and the servlet container
interact can be hairy! And thank you for the update. -Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet