Dependency Injection #279
Unanswered
jcmoore2013-hash
asked this question in
Q&A
Replies: 1 comment
-
Hey John, Are you injecting ILogger or ILogger<YourHandlerClassName)? (The typed logger is needed for proper categorization in the DI scope.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm running a MessageHandler in K8, in its own Pod.
I've configured logging with AddConsole and AddOpentelemetry with exporter. Env var have relating otel properties, which I can see in the pod.
When I create the host and get a logger prior to running the host I can log items, both within the pod logs and my external source where I am shipping logs to.
When a message handler processes a message it does not log. I am injecting ILogger into the MessageHandlers constructor. Any idea why it is not logging to either the console or otel.
Thanks,
John
Beta Was this translation helpful? Give feedback.
All reactions