[
https://issues.apache.org/jira/browse/IVY-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16949089#comment-16949089
]
Jaikiran Pai commented on IVY-1611:
-----------------------------------
> In 2.4.x - this was possible :
> Main.setLogger(new IvyWrapperLogger(Message.MSG_INFO));
I don't see Main.setLogger being available in 2.4.x
[https://github.com/apache/ant-ivy/blob/2.4.0/src/java/org/apache/ivy/Main.java.]
Are you sure this Main class belongs to Ivy?
> Need embedded way of getting log messages
> -----------------------------------------
>
> Key: IVY-1611
> URL: https://issues.apache.org/jira/browse/IVY-1611
> Project: Ivy
> Issue Type: Bug
> Reporter: Greg Perry
> Priority: Major
>
> In 2.4.x - this was possible :
> Main.setLogger(new IvyWrapperLogger(Message.MSG_INFO));
> And allowed logging messages to be propagated to the host application.
> Now setLogger is either gone or private.
> I tried this in 2.5.x
> ivy.getLoggerEngine().pushLogger(new IvyWrapperLogger(Message.MSG_INFO));
> but I suspect it gets "popped" before
> ResolveReport report = Main.run(cmd)is called
--
This message was sent by Atlassian Jira
(v8.3.4#803005)