1.3 Enable Logs for REST Application
This topic provides the systematic instructions to enable logging properties need to be set in the logging.xml.
Log File
All the logs are stored in the file ofss-rest-api.log
once the
parameters are set.
Provide the below entry in the file,
{domain.home}\config\fmwconfig\servers\{server.name}\logging.xml
.
Syntax
<log_handler name='ofss-handler'
class='oracle.core.ojdl.logging.ODLHandlerFactory'level='TRACE:1'>
<property name='path'
value='${domain.home}/servers/${weblogic.Name}/logs/ofss-rest-api.log'
/>
<property name='maxFileSize' value='10485760' />
<property name='maxLogSize' value='104857600' />
<property name='encoding' value='UTF-8' />
<property name='useThreadName' value='true' />
<property name='supplementalAttributes'
value='DSID,J2EE_APP.name,J2EE_MODULE.name,WEBSERVICE.name,WEBSERVICE_PORT.
name,oracle.soa.tracking.FlowId,oracle.soa.tracking.InstanceId,oracle.soa.tracking.SCAEntityId,oracle
.soa.tracking.FaultId,oracle.soa.tracking.RetryCount,composite_name'/>
</log_handler>
<logger name='com.ofss' level='TRACE:1'
useParentHandlers='false'>
<handler name='ofss-handler' />
</logger>
Parent topic: REST Services Deployment in WebLogic