Logging in Openhab 2

Hi!

I want to introduce a seperate logger / logging in my rules. In order to accomplish this I have read the manual, which says

The config file for logging is org.ops4j.pax.logging.cfg located in the userdata/etc folder (manual setup) or in /var/lib/openhab2/etc (apt/deb-based setup).

What is now the proposed way: Should I move / copy the default logging cfg to the userdata/etc folder and add there may additional logging settings? Or should I rather create a new cfg file in the userdata folder with just my additions?

Furthermore I want to get access to the logfiles via the sitemap. Is there any easy way to show the (last) logfile entries?

Thanks in advance!

Best Regards,
Sebastian

Just edit the existing org.ops4j.pax.logging.cfg file, that’s it.