Skip to content

Commit b5b7562

Browse files
Revert "refactor: remove redundant comments in getLoggerInstance method"
This reverts commit f57401a.
1 parent 8d10dcd commit b5b7562

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • packages/contentstack-utilities/src/logger

packages/contentstack-utilities/src/logger/logger.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export default class Logger {
3838
}
3939

4040
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(/^(\.\.(\/|\\|$))+/, '');
4144
// Use session-based path for date-organized logging
4245
const sessionPath = getSessionLogPath();
4346
const filePath = normalize(sessionPath).replace(/^(\.\.(\/|\\|$))+/, '');

0 commit comments

Comments
 (0)