Skip to content

Expose a function to get the Thing logger - #394

Merged
rwb27 merged 1 commit into
mainfrom
get-thing-logger
Aug 5, 2026
Merged

Expose a function to get the Thing logger#394
rwb27 merged 1 commit into
mainfrom
get-thing-logger

Conversation

@rwb27

@rwb27 rwb27 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

This should make it easier for Thing-adjacent code that's not part of a Thing to log in a way that shows up in invocation logs.

I've added a function lt.get_thing_logger that will return the parent of all the Thing loggers - any child of this logger will show up in invocation logs.

Closes #364

This should make it easier for Thing-adjacent code that's not part of a Thing to log in a way that shows up in invocation logs.
@rwb27
rwb27 requested a review from julianstirling August 5, 2026 13:54
@barecheck

barecheck Bot commented Aug 5, 2026

Copy link
Copy Markdown

Barecheck - Code coverage report

Total: 97.31%

Your code coverage diff: 0.00% ▴

Uncovered files and lines
FileLines
src/labthings_fastapi/thing.py297, 369-371, 462

@rwb27 rwb27 added this to the v0.3.0 milestone Aug 5, 2026
@rwb27
rwb27 merged commit 9876974 into main Aug 5, 2026
16 checks passed
@rwb27
rwb27 deleted the get-thing-logger branch August 5, 2026 19:00
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.

Add convenice function to get a copy of the labthings logger

2 participants