diff --git a/site/docs/extensions/bull.md b/site/docs/extensions/bull.md index 61a207a97d91..555fb3cacf45 100644 --- a/site/docs/extensions/bull.md +++ b/site/docs/extensions/bull.md @@ -710,10 +710,12 @@ testQueue.on('completed', function (job, result) { ```typescript export default { midwayLogger: { - // ... - bullLogger: { - fileLogName: 'midway-bull.log', - }, + clients:{ + // ... + bullLogger: { + fileLogName: 'midway-bull.log', + }, + } } } ``` @@ -722,12 +724,17 @@ export default { ```typescript export default { - bull: { - // ... - contextLoggerFormat: info => { - const { jobId, from } = info.ctx; - return `${info.timestamp} ${info.LEVEL} ${info.pid} [${jobId} ${from.name}] ${info.message}`; - }, + midwayLogger: { + clients:{ + // ... + bullLogger: { + fileLogName: 'midway-bull.log', + contextLoggerFormat: info => { + const { jobId, from } = info.ctx; + return `${info.timestamp} ${info.LEVEL} ${info.pid} [${jobId} ${from.name}] ${info.message}`; + }, + }, + } } } ``` diff --git a/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/orm.md b/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/orm.md index ce53d8e9cda6..3651daf9bd2f 100644 --- a/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/orm.md +++ b/site/i18n/en/docusaurus-plugin-content-docs/current/extensions/orm.md @@ -439,9 +439,14 @@ export default { // Configure the entity model entities: [Photo], - // or scan format + // or scan format,For compatibility we can match .js and .ts at the same time entities: [ - '**/entity/*.entity{.ts,.js}' + 'entity', // Specific directory + '**/abc/**', // Gets only files in directories that contain abc characters + 'abc/**/*.{j,t}s', // Specific directory + suffix matching + 'abc/*.entity.{j,t}s', // suffix matching + '**/*.entity.{j,t}s', // path and and suffix matching + '**/*.{j,t}s', // suffix matching ] } }