Enable SQL Logging in MySQL/Mariadb

How to enable SQL Statements log in MySQL

Add the following  to /etc/mysql/conf.d/mysql.cnf file

[mysqld]
general_log = on
general_log_file = /var/log/mysql/sqls.log