#169 : Re-enabled command manager, created extrudeTiles command for testing

This commit is contained in:
2024-09-30 19:02:55 +02:00
parent ddeee356b4
commit 3a83f2c1ff
5 changed files with 169 additions and 32 deletions

View File

@ -3,7 +3,7 @@ import fs from 'fs'
import path from 'path'
// Array of log types
const LOG_TYPES = ['http', 'game', 'gameMaster', 'app', 'queue'] as const
const LOG_TYPES = ['http', 'game', 'gameMaster', 'app', 'queue', 'command'] as const
type LogType = (typeof LOG_TYPES)[number]
const createLogger = (name: LogType) =>
@ -43,6 +43,13 @@ const watchLogs = () => {
})
}
export const { http: httpLogger, game: gameLogger, gameMaster: gameMasterLogger, app: appLogger, queue: queueLogger } = loggers
export const {
http: httpLogger,
game: gameLogger,
gameMaster: gameMasterLogger,
app: appLogger,
queue: queueLogger,
command: commandLogger
} = loggers
export { watchLogs }