Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Logging in m2e

Thanks you Vlad, when I was writing "log4j.properties" I was thinking of its equivalent for slf4j :)
When using those logger the log goes it eclipse log. How can I tell that I want some logs to go in the MavenConsole appender? Should I ?
Thanks.
Regards,
Olivier.

"Imagination is more important than knowledge.": Albert Einstein

Le 14 févr. 2011 à 17:32, Vlad Tatavu <vtatavu@xxxxxxxxxxxx> a écrit :

We use slf4j over logback (by default) now in m2e.  The logback and logback configuration are optional, but if they are not installed, there's no logging at all.

We don't have support for log4j.

You don't have to do/learn much to use slf4j.  Your bundles need to require org.slf4j.api, and u need to create an slf4j logger in each class that logs something.  That's one line:
private static final Logger log = LoggerFactory.getLogger(<your class name here>.class);

Vlad

On 2/14/2011 11:16 AM, olivier nouguier wrote:


On Mon, Feb 14, 2011 at 5:05 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
What do you want to write to Maven console?
I'm writing configurator to force some eclipse settings (encoding, formatting ...) from a shared maven artifact.
For instance I'd like to put some WARN messages if encoding is not specified in the maven-compiler-plugin configuration.

Our current thinking is that all code should use slf4j and what shows in
the console will be decided based on logback configuration.

What do you think?

I think that I have to learn logback :) and how to plug my "log4j.properties" in it.
Thanks. 
--
Regards,
Igor


On 11-02-14 10:44 AM, olivier nouguier wrote:
Hi,
  Since the last update, the MavenConsole has disappeared (at least
from API).
  How can we log in the MavenConsole from now?
Thanks.

Regards,
Olivier

--
"Computers are useless. They can only give you answers."
- Pablo Picasso -



_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev



--
"Computers are useless. They can only give you answers."
- Pablo Picasso -
_______________________________________________ m2e-dev mailing list m2e-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/m2e-dev

_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev

Back to the top