Logging harmony among WebSphere Application Server platforms and versions
KawsarKamal 0600000FSK Visits (8192)
If you have worked with WebSphere Application Server across both z/OS and Distributed platforms, you probably noticed the different format of trace / log messages. For example, the informational message WSVR0057I appears as below in a WebSphere for z/OS server's SYSPRINT Data Definition (DD) output:
Trace: 2011/06/27 12:04:37.931 01 t=6CC718 c=UNK key=P8 (13007002)
The same WSVR0057I message appears as below in a WebSphere Distributed server's trace.log file:
[23/06/11 13:00:52:343 BST] 0000002b EJBContainerI I WSVR0057I: EJB jar started: querybean.jar
You may want to have common logging format across both platforms. Perhaps you have some scripts for parsing WebSphere logs to look for certain messages. By having a common logging format the same scripts can be used across WebSphere z/OS and Distributed. Or you may like the terse format of WebSphere Distributed log messages.
You can make the WebSphere for z/OS logs look the same as Distributed by setting the following nifty Java system property:
This can set be via the WebSphere for z/OS Administrative Console via the path below:
Servers > Application servers > server_name > Java and Process Management > Process Definition > Servant | Control | Adjunct > Java Virtual Machine > Custom Properties > NewThe same WSVR0057I message from the previous example now appears as follows:
[6/7/11 15:44:07:176 GMT] 0000000c EJBContainerI I BBOO0222I: WSVR0057I: EJB jar started: querybean.jarNotes:
* To use this property in V7.0 you must be at or above service level 184.108.40.206. Using this property at an older service level will cause a Null
* This property only affects the SYSPRINT DD of WebSphere for z/OS output, the remaining DDs are unaffected.
New developments in V8:
In V8 we have introduced: High Performance Extensible Logging (HPEL). This is a common logging solution for both z/OS and Distributed platforms. Read more about it in the V8 InfoCenter: High Performance Extensible Logging (HPEL)