MySQL general logs to syslog

rana chand <[email protected]> Mon, 19 Oct 2020 00:21:42 -0700 (PDT)
Newsgroups comp.databases.mysql
Message-ID <[email protected]>
Hi All,

Currently all MySQL error logs and general logs  are stored in /var/log/mysql/error.log and /var/log/mysql/mysql.log

I want to redirect these logs to syslog. So, I have addes the following to the configuration file of mysql:

[mysqld]
log-syslog     = on

Now only MySQL error logs are only redirected to the syslog.
Is there a way to redirect both the error and general logs to syslog.
 
Regards,
Rana