# How to use log the result to the console

**URL:** <https://faq.inetsoftware.de/t/how-to-use-log-the-result-to-the-console/54>\
**Category:** API\
**Tags:** version4, version3\
**Created:** [June 7, 2016, 12:27pm UTC](https://faq.inetsoftware.de/t/how-to-use-log-the-result-to-the-console/54 "2016-06-07T12:27:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardRoedel](https://faq.inetsoftware.de/user_avatar/faq.inetsoftware.de/richardroedel/32/27_2.png) [@RichardRoedel](https://faq.inetsoftware.de/u/RichardRoedel)\
**Post date:** [June 7, 2016, 12:27pm UTC](https://faq.inetsoftware.de/t/how-to-use-log-the-result-to-the-console/54/1 "2016-06-07T12:27:08Z")

</div>

To log the result to a log file or ‘standard out’ use a ConsolePresenter

```
new PDFComparer()
            .addPresenter( new ConsolePresenter() )
            .compare( <file1>, <file2> );

```

[View full sourcecode](https://github.com/i-net-software/pdfc-samples/blob/master/src/main/java/console/SimpleConsole.java)
