Skip to content

fix(logger): resolve correct caller class for currentFileLogger - #681

Merged
haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
terry-lamp:feature/logger-print-correct-filename
Aug 30, 2026
Merged

haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
terry-lamp:feature/logger-print-correct-filename

Conversation

@terry-lamp

Copy link
Copy Markdown
Contributor
  • Fixes currentFileLogger to identify the calling class instead of the utility class itself.
  • Ensures log output correctly reflects the source file/class for improved debuggability.

- Fixes currentFileLogger to identify the calling class instead of the utility class itself.
- Uses thread stack trace inspection to dynamically resolve the caller at runtime.
- Implements a fallback to the Logger class name with a warning if stack resolution fails.
- Ensures log output correctly reflects the source file/class for improved debuggability.

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @terry-lamp !

@haiphucnguyen
haiphucnguyen merged commit ebb5592 into askimo-ai:main Aug 30, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants