chore: child loggers only show filename without path now
Some checks failed
Test & Build / build (push) Has been cancelled
Build & Push Docker Image / build (push) Has been cancelled

This commit is contained in:
Corban-Lee Jones 2025-05-20 17:20:10 +01:00
parent dc3deffb32
commit ec2f62ab3b

View File

@ -89,5 +89,5 @@ export const logger = winston.createLogger({
cleanExpiredLogFiles();
export const getLogger = (file: string) => {
return logger.child({ filename: path.relative(__dirname, file).replace(/\\/g, "/") });
return logger.child({ filename: path.basename(file) });
}