sequelize node js stop logging code example
Example 1: disable sequelize logging
var sequelize = new Sequelize('database', 'username', 'password', {
// disable logging; default: console.log
logging: false
});
Example 2: sequelize turn off logging
module.exports = {
development: {
dialect: 'sqlite',
storage: './sqlite.db',
operatorsAliases: 0,
},
test: {
dialect: 'sqlite',
storage: './sqlite.db',
operatorsAliases: 0,
},
production: {
dialect: 'sqlite',
storage: './sqlite.db',
operatorsAliases: 0,
logging: false,
},
};