mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
20 lines
515 B
TypeScript
20 lines
515 B
TypeScript
import { randomUUID as uuidv4 } from 'node:crypto';
|
|
import { Logger } from 'pino';
|
|
import loggerModule from '../../common/services/logger';
|
|
|
|
module.exports = {
|
|
name: 'error',
|
|
isDebug: true,
|
|
isPlayerEvent: true,
|
|
execute: async (message: string) => {
|
|
const executionId: string = uuidv4();
|
|
const logger: Logger = loggerModule.child({
|
|
module: 'event',
|
|
name: 'playerDebug',
|
|
executionId: executionId
|
|
});
|
|
|
|
logger.trace(message);
|
|
}
|
|
};
|