Skip to content

chore: make Clearcut logger a global singleton#1999

Open
yulunz wants to merge 1 commit intomainfrom
chore/singleton-logger
Open

chore: make Clearcut logger a global singleton#1999
yulunz wants to merge 1 commit intomainfrom
chore/singleton-logger

Conversation

@yulunz
Copy link
Copy Markdown
Collaborator

@yulunz yulunz commented May 6, 2026

We will add a error logging method to ClearcutLogger in a follow-up PR. Since the error can happen anywhere in the stack, the logger instance has to be readily available (i.e. w/o passing the logger instance everywhere). This commit registers the instantiated logger as a global singleton, and makes it possible to retrieve it by a static method (ClearcutLogger.get()) wherever we need it.

@yulunz yulunz requested a review from OrKoN May 6, 2026 00:18
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.

1 participant