Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/249
`logger` configuration permit to log error/query/network messages, but there is still some remaining messages that are send to console.
Those are configuration warnings and pool leaking warnings.
Goal is to provided a solution to permit external logging for those warnings.
If no warning logger is set, those warning will still be written on console.
Here is an example of use :
const logger = winston.createLogger({
transports: [
]
});
const pool = mariadb.createPool({
logger: {
network: (msg) => logger.silly(msg),
query: (msg) => logger.info(msg),
error: (err) => logger.error(err),
warning: (msg) => logger.warn(msg),
}
});