chore: child loggers only show filename without path now
This commit is contained in:
parent
dc3deffb32
commit
ec2f62ab3b
@ -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) });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user