Change from HPEL to basic mode logging and tracing
Use this topic if we need to switch from HPEL to the basic mode log and trace framework. The basic mode log and trace framework is enabled by default when you set up a new application server.
Before beginning this task, read about the differences between HPEL mode and basic mode. Be aware of changes we might need to make to any tools and scripts we have that use HPEL files or commands.
We can switch to basic mode using the administrative console, or . HPEL provides faster log and trace handling capabilities and more flexible ways to exploit log and trace content than the basic mode.
- Use the administrative console to switch to basic mode.
- Log on to the administrative console.
- If using an administrative agent topology, select a node to manage and navigate to it.
- From the navigation section in the console click Troubleshooting > Logs and trace.
- Select the server to switch to basic mode.
- Click Change log and trace mode.
- Click Switch back to basic mode.
- Save the changes.
- Use wsadmin scripting to switch to basic mode. These steps modify the server configuration. The server does not need to be running to perform these steps.
- Start wsadmin. In this case, wsadmin can be connected to a running server or accessing the configuration data for a stopped server. Read about starting the wsadmin scripting client for more information.
- Get a reference to the HighPerformanceExtensibleLogging configuration object.
Using Jython:
HPELService = AdminConfig.getid("/Cell:myCell/Node:myNode/Server: myServer/HighPerformanceExtensibleLogging:/")
command description. The table lists AdminConfig command
Command Description myCell The name of the cell myNode The host name of the node myServer The name of the server
- Set the HighPerformanceExtensibleLogging enable attribute to false.
Jython:
AdminConfig.modify(HPELService, "[[enable false]]")
- Get a reference to the RASLoggingService object.
Jython:
RASLogging = AdminConfig.getid("/Cell:myCell/Node:myNode/Server: myServer/RASLoggingService:/")
Command Description myCell The name of the cell myNode The host name of the node myServer The name of the server
- Set the RASLoggingService enable attribute to true.
Jython:
AdminConfig.modify(RASLogging, "[[enable true]]")
- Save the configuration.
Jython:
AdminConfig.save()
Results
The server is now configured to use the basic mode log and trace framework when you restart.If this task was done using the deployment manager, we might need to synchronize the node agent on the target node before restarting the server.
Related concepts
Basic mode and HPEL mode
Related tasks
Start the wsadmin scripting client