eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

Home Page:https://eveningkid.com/denodb-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set logging?

LauraWebdev opened this issue · comments

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

You can configure this in the connector:

new MySQLConnector({
  ...
  logger: { enable: false },
})