Giter Club home page Giter Club logo

Comments (10)

adamjk-dev avatar adamjk-dev commented on June 17, 2024

I ended up using the following (to get two output files):

arguments:

  • "-Dweblogic.Stdout=/logs/%{::domain}/weblogic/%{::appname}-s1.log"
  • "-Dweblogic.Stderr=/logs/%{::domain}/weblogic/%{::appname}-s1.out"

logfilename: "/logs/%{::domain}/weblogic/%{::appname}-s1.log"

For instance, the logfilename parameter and the stdout JVM define both point to the same log file.

from biemond-orawls.

biemond avatar biemond commented on June 17, 2024

The 2 server java arguments are used by the nodemanager when it startups up the managed server, re-direct outlog and how the nodemanager starts the server.

The other are for the managed server, domain, http ,datasource log etc. with rotation and size
Don't think you used re-use the log files because of locking or performance.

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on June 17, 2024

Interesting, I know my customer has specifically requested two output log files (one for stdout and one for stderr) as described above. But, I see your point on the performance...

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on June 17, 2024

Yeah, I just tested this, and I don't see some of my applications output that is being sent to STDOUT, maybe this is due to what you were saying?

from biemond-orawls.

biemond avatar biemond commented on June 17, 2024

In the weblogic console you can try on the advanced log options of a managed server to enable redirect stdout to server log

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on June 17, 2024

My coworker says this option:
http://docs.oracle.com/cd/E17904_01/web.1111/e13739/config_logs.htm#WLLOG163

-Dweblogic.log.RedirectStdoutToServerLogEnabled=true

from biemond-orawls.

biemond avatar biemond commented on June 17, 2024

indeed that does the same.

is the application using a Logger or doing System.out

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on June 17, 2024

We just wrote a quick test app to write to stdout and stderr. He just used a System.out and System.err. Does it make a difference?

from biemond-orawls.

biemond avatar biemond commented on June 17, 2024

I think with a logger, default every under warning is ignored . So when you log a warning or an error you should see it. system out only when you set weblogic.log.RedirectStdoutToServerLogEnabled=true you can see this output in the normal log but It should be there in the nodemanager log, off course when you use the nodemanager to start the managed server.

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on June 17, 2024

So, I added the RedirectStdoutToServerLogEnabled for both my WL 10 and 12 offerings. This seems to have allowed the output to route to where it should go.

from biemond-orawls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.