Hi Robert,

On 8/6/16 3:27 PM, Robert Scholte wrote:
Hi Karl Heinz,

the interface and implementation of the logger are separated. It should
pick up the logger implementation as defined for the Maven runtime. If
that's not the case, then we have an issue here.

It works as you describe it..no problem.. May be I was not clear enough...
The question was If i could inject somehow an other Logger which is redirected to a file instead onto the console which is done by the default Logger ?...

But it sounds like it is not easy...may be it does not make really sense ? I'm just thinking about some options...

Thanks for your answer..


Kind regards
Karl Heinz





thanks,
Robert

On Sat, 06 Aug 2016 13:01:55 +0200, Karl Heinz Marbaise
<[email protected]> wrote:

Hi,

i have a question concerning DI

If I have the following code:

public class XX {

     @Inject
     private ScmManager scmManager;


During the run in Maven this will automatically looked up and injected
into this attribute...so fine so far...

But is it possible to provide a different logger instance into this
instead of the default one which loggs on console (info level) so I
can control the level of output or maybe change to output to log into
file instead of the console ?


Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to