Umzug V3 Running in a Typescript compiled environment using Node V18.19.0
Would like to add logging statements to a migration script. I have tried a couple of different loggers (Log4js/Winston/Console), logging to console and to files, but not sure what I am missing, but getting nothing from the "up" function context.
I have the umzug setup -> logger: console. Log statements in the rest of the code do just fine.
module.exports = { up: async (queryInterface, Sequelize) => { log.info('custom message desired here')};
It would be nice to be able to log - any help would be appreciated.
TIA
Background:
Above logging is needed to help diagnose sequencing issue with DDL statements:
check for constraint
remove constraint if exists
create new improved constraint
Constraint removal always seems to happen last - regardless of my promise chain.?!?!
Immediate issue:
Umzug V3 Running in a Typescript compiled environment using Node V18.19.0 Would like to add logging statements to a migration script. I have tried a couple of different loggers (Log4js/Winston/Console), logging to console and to files, but not sure what I am missing, but getting nothing from the "up" function context. I have the umzug setup -> logger: console. Log statements in the rest of the code do just fine.
module.exports = { up: async (queryInterface, Sequelize) => { log.info('custom message desired here')};
It would be nice to be able to log - any help would be appreciated. TIABackground:
Above logging is needed to help diagnose sequencing issue with DDL statements:
Constraint removal always seems to happen last - regardless of my promise chain.?!?!