Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Log entries from ExecuteScript service

Avatar

Level 8
Level 8

Hi all,

A have tried to use an ExecuteScript with the following code on a LC ES 2.5 Weblogic Windows 2003 installation:

import org.apache.log4j.*;

Logger myLog = Logger.getLogger("com.myname.logger");

myLog.error("Error in my central server log");

However I cannot find this in any of the logs.

If I use the same approach on an JBOSS installation this would end up in the server.log file, however I am not sure which log file it actuially should be in?

Can you help me?

Thanks in advance

Sincerely

Kim Christensen

Dafolo A/S

Denmark

1 Reply

Avatar

Level 8
Level 8

Hi again,

Found the answer myself :-)

To do this, you must setup your Weblogic server to redirect stdout to the server log. This is done in the adminserver console under Server - Logging - Advanced - "Redirect stdout to server log".

Hope this helps somebody out there

Have a good one all of you

Sincerely

Kim Christensen

Dafolo A/S

Denmark