Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Logger log level(LogService belonging to the Equinox Framework seems to be logging only ERROR messages)
Logger log level [message #1808583] Thu, 27 June 2019 10:40
Kewaan E is currently offline Kewaan EFriend
Messages: 1
Registered: June 2019
Junior Member
I have recently migrated our OSGi bundles to JAVA 11 and also updating the Eclipse OSGi bundles in the process (Photon Release). However, the LogService itself seems to be behaving a bit odd as previously we could log our messages with the log level specified which worked perfectly. However, the log level seems to be ignored now and we are only able to see ERROR-related messages. For convinience, following is the code I am using to test the log service;

ServiceTracker logServiceTracker = new ServiceTracker<>(context,LoggerFactory.class.getName(),null);;
LoggerFactory factory = (LoggerFactory) logServiceTracker.getService();
if(factory != null) {
logger = factory.getLogger(Activator.class);
if(logger != null) {
if(logger.isInfoEnabled()) {"INFO Enabled");
if(logger.isErrorEnabled()) {
logger.error("ERROR Enabled");
if(logger.isWarnEnabled()) {
logger.warn("WARN Enabled");
if(logger.isDebugEnabled()) {
logger.debug("DEBUG Enabled");

Debugging shows that Log level has been set to 'WARN'. I tried setting the log level in the config.ini (eclipse.log.level) but that has no effect. Any hint(s) or help will be appreciated. Thank you!
Previous Topic:[HttpService] Filter registration behavior change in 2019-03
Next Topic:Querying product's plugins under debug
Goto Forum:

Current Time: Sun Sep 25 13:53:37 GMT 2022

Powered by FUDForum. Page generated in 0.02463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top