# Generating Report and Log files

**URL:** <https://forum.robotframework.org/t/generating-report-and-log-files/7172>\
**Category:** Robot Framework\
**Created:** [16 April 2024 08:39 UTC](https://forum.robotframework.org/t/generating-report-and-log-files/7172 "2024-04-16T08:39:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Louay](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Louay](https://forum.robotframework.org/u/Louay)\
**Post date:** [16 April 2024 08:39 UTC](https://forum.robotframework.org/t/generating-report-and-log-files/7172/1 "2024-04-16T08:39:34Z")

</div>

Hello  
i was wondering if there are built in options to generate report and log files in different paths each  
for exemple 🙂 /home/Desktop/robot\_framework\_reports and /home/Desktop/robot\_framework\_logs  
thank you

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [16 April 2024 09:24 UTC](https://forum.robotframework.org/t/generating-report-and-log-files/7172/2 "2024-04-16T09:24:43Z")

</div>

Hi Louay,

To to that, I think you would need to specify the full path to the files individually using these options:

```python
 -o --output file XML output file. Given path, similarly as paths given
                          to --log, --report, --xunit, and --debugfile, is
                          relative to --outputdir unless given as an absolute
                          path. Other output files are created based on XML
                          output files after the test execution and XML outputs
                          can also be further processed with Rebot tool. Can be
                          disabled by giving a special value `NONE`.
                          Default: output.xml
 -l --log file HTML log file. Can be disabled by giving a special
                          value `NONE`. Default: log.html
                          Examples: `--log mylog.html`, `-l NONE`
 -r --report file HTML report file. Can be disabled with `NONE`
                          similarly as --log. Default: report.html

```

It’s usually easier to just use the -d option to specify a directory for all the files to go to that’s unique for each run, and keep them together with any screenshots.

Dave.

---

<div class="post-metadata">

**Author:** ![Louay](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@Louay](https://forum.robotframework.org/u/Louay)\
**Post date:** [16 April 2024 10:10 UTC](https://forum.robotframework.org/t/generating-report-and-log-files/7172/3 "2024-04-16T10:10:18Z")

</div>

thank you vey much Dave i think i’ll do that and change the path manually i thought there’s a magical solution already implemented

---

<div class="post-metadata">

**Author:** ![NikosKoul](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/nikoskoul/32/2512_2.png) [@NikosKoul](https://forum.robotframework.org/u/NikosKoul)\
**Post date:** [19 April 2024 04:49 UTC](https://forum.robotframework.org/t/generating-report-and-log-files/7172/4 "2024-04-19T04:49:12Z")

</div>

If you’re using VS code, you can do it by setting the path in the settings.JSON

> “launch”: {  
> “configurations”: [  
> {  
> “type”: “robotframework-lsp”,  
> “name”: “Robot Framework: Launch Template”,  
> “request”: “launch”,  
> “terminal”: “integrated”,  
> “args”: [“–outputdir”, “_ **this is your path** _”]  
> }  
> ],  
> }

When you run the tests by the IDE buttons, all outputs will be extracted in this path. When you run your tests in the command line, indeed you should set the -d parameter as Dave mentioned.
