Disabling view_log table entries

Hi! I understand that view_log table's entries are logged via metabase's logging capabilities. Please let me know if I've understood it wrongly.

Trying to these entries off, we're thinking of using custom logging log4j2.xml file with these contents only:

<?xml version="1.0" encoding="UTF-8"?>

Would this entirely disable the logging/ writing into the view_log table? thank you for your kind assistance to anyone!

You can't disable the application from inserting in the "view_log" table

log4j2.xml is for changing the logging of the application (if it logs to stdout or to a file, etc)

sorry should have been clear -

the entire config should be here:

<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT" follow="true">
</Console>

</Appenders>

<Loggers>
<!-- Exclude the view_log logger -->
<Logger name="metabase.events.view-log" level="OFF"/>
<Root level="INFO">
<AppenderRef ref="STDOUT"/>
</Root>
</Loggers>
</Configuration>