Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[e4-dev] Logger-API useage in Eclipse codebase

Hi,

I've seen bug reports from Lars' where he suggest using Logger in our
code base, while I think the general intent is very good, we should
first discuss how we proceed with the Logger-Stuff.

In my opinion the e4-Logger-"API" is completely flawed and we need to
first fix this or completely get rid of Logger and go for slf4j.

There was an on going discussion on the architecture council to
streamline Logging@Eclipse by Marcel Bruch (I cced him) where John
suggested that we remove Logger and go for slf4j.

On the other hand I'd like to point you towards the work we have done at
e(fx)clipse where one of our runtime bundles provides a Logger-API and
you can get access to the a Logger [1] with

class Bla {
  @Inject
  @Log
  Logger logger
}

or if you are in Guice

class Bla {
  @Log
  Logger logger
}

See https://wiki.eclipse.org/Efxclipse/Runtime/Recipes#Logging, we
currently support the following backends:
* java.util.logging
* log4j
* slf4j

Tom

[1]http://efxclipse.bestsolution.at/doc/api/index.html?org/eclipse/fx/core/log/Logger.html


Back to the top