public static WsLogRecord createWsLogRecord ( TraceComponent tc , Level level , String msg , Object [ ] msgParms ) { WsLogRecord retMe = new WsLogRecord ( level , msg ) ; retMe . setLoggerName ( tc . getName ( ) ) ; retMe . setParameters ( msgParms ) ; retMe . setTraceClass ( tc . getTraceClass ( ) ) ; retMe . setResourceBundleName ( tc . getResourceBundleName ( ) ) ; if ( level . intValue ( ) >= Level . INFO . intValue ( ) ) { retMe . setLocalizable ( REQUIRES_LOCALIZATION ) ; } else { retMe . setLocalizable ( REQUIRES_NO_LOCALIZATION ) ; } return retMe ; }
Static method constructs a WsLogRecord object using the given parameters . This bridges Tr - based trace and Logger based trace