# Single File Logging

profilesSingle file logging is useful to view the log details separately in a single file in the required location. This feature can be used in DBSync Cloud Replication by following a simple process mentioned below.

#### Solution: <a href="#singlefilelogging-solution" id="singlefilelogging-solution"></a>

* Download the **latest version** **(6.x)** of the ZIP or EXE file of the DBSync Cloud Replication tool from DBSync website using the URL <http://mydbsync.com/integration/cloud-replication-for-salesforce> (If the latest version of DBSync Cloud Replication is already installed, this step must be ignored).
* config.properties must be accessed from the installation folde&#x72;*.* The following path can be referred dbsync-cd&#x6D;*> WEB-INF* > *profiles* > Org Id> *config (the required profile name)* > *config.properties*\
  \
  ![](https://help.mydbsync.com/docs/download/attachments/31983593/log.dir.PNG?version=1\&modificationDate=1559139989000\&api=v2)\ <br>
* *Same can be done through system.properties.The following path can be referred dbsync-cdm> WEB-INF > db > conf >system.properties*

![](https://help.mydbsync.com/docs/download/attachments/31983593/log.dir1.PNG?version=1\&modificationDate=1559140280000\&api=v2)<br>

* Open config.properties, identify the below commands. If not available, these commands must be included.

log.dir=\<dir for the log file>

log.filename=\<name of the file>

log.append=\<true or false> *true* is to add the logs to the existing file and *false* is to overwrite the existing file with new logs.

* Edit these commands as required. An example is shown in the screen capture.![](https://help.mydbsync.com/docs/download/attachments/31983593/2910131.png?version=1\&modificationDate=1546941676000\&api=v2)
* Save config.properties or system.properties & restart the server before running the replication. After running the replication logs can be viewed from the new location in a single file.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mydbsync.com/cloud-replication-main/troubleshooting/single-file-logging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
