chore(backend): Loki configureren
De meeste console statements vervangen door Loki
This commit is contained in:
parent
0f8bd3df6a
commit
7fd6305fd9
8 changed files with 767 additions and 40 deletions
|
@ -1,6 +1,13 @@
|
|||
import { MikroORM } from '@mikro-orm/core';
|
||||
import config from './mikro-orm.config.js';
|
||||
import { getLogger } from './logging/initalize.js';
|
||||
import { Logger } from 'winston';
|
||||
|
||||
export default async function initORM() {
|
||||
const logger: Logger = getLogger();
|
||||
|
||||
logger.info('Initializing ORM');
|
||||
logger.debug('MikroORM config is', config);
|
||||
|
||||
await MikroORM.init(config);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue