eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
https://eveningkid.com/denodb-docs
MIT License
1.93k stars 129 forks source link

How to set logging? #374

Closed LauraWebdev closed 1 year ago

LauraWebdev commented 1 year ago

Hey there,

I'm trying to setup the logger so it does not display these logs. I've seen a LoggerConfig reference in the MySQLConnector but no documentation, what are the steps so I can disable these INFO logs?

INFO connecting 127.0.0.1:3306
INFO connected to 127.0.0.1:3306
INFO close connection
zookatron commented 1 year ago

You can configure this in the connector:

new MySQLConnector({
  ...
  logger: { enable: false },
})
LauraWebdev commented 1 year ago

Thanks!