I have a Logger Bean that gets injected everywhere I want to log something like this:
@Logger
Log log;
following this blog.
Now I want to also be able to use that logger bean in an unmanaged object. How do I make this object aware that there is a managed logger out there to use?
I've read somewhere that using the ApplicationContext is bad practice. But maybe it's the only way? If so, what would be the best way to do this? This seems like the way to go..?
Thanks!