## 4.2.15.9.3.1  Freestyle App Integration
You can implement the reusable component from the Reuse Library in a freestyle app in order to display an application log.
## Context
To be able to use the reusable components, you need to adapt the code that can be found in your view definition file and your controller file.
## Procedure
1. In the view definition file ( &lt;MY\_LOG\_DISPLAY\_VIEW.view.xml&gt; ), the log display must be positioned on the page. Prepare a container control that will hold the log display component:
2. In the controller file ( &lt;MY\_LOG\_DISPLAY\_VIEW.controller.js&gt; ), the relevant coding goes into the handler for the onlnit event. Create the component and place it into the container control:
```
 Sample Code <!-- xmlns:core="sap.ui.core" --> <core:ComponentContainer id="LogMessagesControlContainer" />
```
##  Note
Make sure to replace the string &lt;MY\_LOG\_DISPLAY\_VIEW&gt; with your own view's name!
```
 Sample Code var that = this; this.getOwnerComponent().createComponent({ usage: "ApplicationLogs", id: "LogMessagesControlComponent", settings: { "persistencyKey": "MY_LOG_DISPLAY_VIEW", "showHeader": false, "showFilterBar": false, "showAsTree": false } }).then(function (oComp) { that.byId("LogMessagesControlContainer").setComponent(oComp); oComp.setLogHandle("<LogHandle>"); oComp.refresh(); });
```
##  Note
The component you embed makes use of the SmartFilter and the SmartTable control. Both controls enable a user to configure the components interactively, and also to store a current set of configuration
settings as a named variant. By providing a value for the persistencyKey parameter, you make sure that the variants that get created in your application become visible only to the users of your application, and not to all users of the component in all applications.
3. Adapt your &lt;manifest.json&gt; file and add the sap.nw.core.applogs.lib.reuse.applogs component:
```
 Sample Code "sap.ui5": { "dependencies": { "libs": { "sap.nw.core.applogs.lib.reuse": { "lazy": true } }, "components": {} }, "componentUsages": { "ApplicationLogs": { "name": "sap.nw.core.applogs.lib.reuse.applogs", "lazy": true } }
```
After your app was deployed successfully to an SAP BTP ABAP environment system, the BSP application and the SAP Fiori launchpad app descriptor item will appear under your created package in Eclipse.
4. Now, you need to create a new IAM App . Follow the instructions described here: Defining an IAM App for the Business Service [page 898].
5. Once created, you need to maintain the Application Log OData Service to call your application log data. To do this, go to the Service tab and add the Application Log OData Service by naming the service type OData V2 and add the following service name: APL\_LOG\_MANAGEMENT\_SRV             0001 . Mind that all 13 spaces between SRV and 0001 are required. Now, go to the Authorization tab and maintain your log objects / sub objects for the authorization object S\_APPL\_LOG .
6. Finally, you need to create a new Business Catalog . Please follow the procedure described here: Creating a Business Catalog [page 899]
Having created the business catalog, you have successfully implemented a reusable component to display your application logs.