Change from basic mode to HPEL logging and tracing
The basic mode log and trace framework is enabled by default when you set up a new application server. Use this topic to switch to the High Performance Extensible Logging (HPEL) log and trace framework.
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 the basic mode log and trace files.
HPEL provides faster log and trace handling capabilities and more flexible ways to use log and trace content than the basic mode. We can switch to HPEL mode using the administrative console, or .
- Use the administrative console to switch to HPEL.
- Log on to the administrative console.
- If using an admin agent topology select a node to manage and navigate to it.
- From the navigation section in the console choose Troubleshooting > Logs and trace .
- Select the server to switch to HPEL.
- Click Switch to HPEL Mode .
- Save the changes.
- Use wsadmin scripting to switch to HPEL. Complete these steps to modify the server configuration.
- Start wsadmin. In this case, we can connect wsadmin to a running server or access 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 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 true.
Jython:
AdminConfig.modify(HPELService, "[[enable true]]")
- 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 false.
Jython:
AdminConfig.modify(RASLogging, "[[enable false]]")
- Save the configuration.
Jython:
AdminConfig.save()
Results
The server is now configured to use HPEL 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.
What to do next
Configure HPEL to meet the needs. If we have any tools or scripts that were using the basic mode log and trace files, we might need to modify them to continue working with HPEL.
Related concepts
Basic mode and HPEL mode
Related tasks
Start the wsadmin scripting client
Configure HPEL