How Do I: Turn On IDE Logging?

If you contact BEA technical support, representatives might ask you to enable logging in order to better diagnose IDE related issues.

To configure WebLogic Workshop to log IDE related messages to the ide.log file

  1. Make a backup copy of <BEA_HOME><WEBLOGIC_HOME>/workshop/Workshop.cfg (workshop.sh on Linux or Unix machines)
  2. Open <BEA_HOME><WEBLOGIC_HOME>/workshop/Workshop.cfg (workshop.sh on Linux or Unix machines) in a text editor.
  3. Insert -Dworkshop.enablelogging=true into the javaw.exe command immediately following the first switch that begins with -D, which is on the second line of the command line. Ensure that javaw.exe is still immediately followed by a new line.
  4. Save the updated configuration file.
  5. Restart the IDE. The log file ide.log is now created in the /workshop folder and logs the IDE events.

Note: the logging output file ide.log is created anew every time you startup the IDE. Previous logs are overwritten.

Example

What follows is an example of a <BEA_HOME><WEBLOGIC_HOME>/workshop/Workshop.cfg file which has been configured for writing IDE messages to ide.log. The part you need to insert is shown in red.

C:\bea\weblogic81\workshop
C:\bea\jdk142_04\jre\bin\javaw.exe
-XX:-UseThreadPriorities -Xmx256m -Xms64m -Xss256k -client -Dsun.io.useCanonCaches=false -Dworkshop.enablelogging=true -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Djava.system.class.loader="workshop.core.AppClassLoader" -cp "C:\bea\weblogic81\workshop\wlw-ide.jar" workshop.core.Workshop

Related Topics

Message Logging