We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d10dcd commit b5b7562Copy full SHA for b5b7562
1 file changed
packages/contentstack-utilities/src/logger/logger.ts
@@ -38,6 +38,9 @@ export default class Logger {
38
}
39
40
getLoggerInstance(level: 'error' | 'info' | 'warn' | 'debug' | 'hidden' = 'info'): winston.Logger {
41
+ // Use session-based path for date-organized logging
42
+ const sessionPath = getSessionLogPath();
43
+ const filePath = normalize(sessionPath).replace(/^(\.\.(\/|\\|$))+/, '');
44
// Use session-based path for date-organized logging
45
const sessionPath = getSessionLogPath();
46
const filePath = normalize(sessionPath).replace(/^(\.\.(\/|\\|$))+/, '');
0 commit comments