Skip to content

Adding custom Logging to container #313

Answered by canton7
JohnBerg60 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm a little bit confused as to what your question is I'm afraid.

  1. You start off configuring a logger to be used by Stylet, and that appears to be fine?
  2. You then configure your own logging infrastructure with ILog and MyLogManager? Fine, I assume your code is using your MyLogManager to get logger instances?
  3. Then you start trying to register ILog with the container, and bypass the MyLogManager altogether.

What are you trying to do by registering ILog with the container? Are you trying to inject loggers into other types? If so, why doesn't this registration involve the MyLogManager at all?

I'm also not sure what "but that is obvious not doing the job" means -- why is it obvious that it's n…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JohnBerg60
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants