Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-87494

OSGI LogService only usable for levels WARNING and above

Details

    • 2

    Description

      The logging method used all over the place (OSGI LogService + module-log4j.xml with osgi.logging.BUNDLE-Symbolic-Name) doesn't work anymore in 7.1 (FP3). You can still log through the OSGI LogService, but only at level WARNING and above. The log4j.xml still add an entry to the control panel, but it doesn't actually effect anything. I've tried both with stuff directly from the blade example repository and my own stuff (that both previously worked. Only way to get it to work now seems to be to replace the OSGI LogService with slf4j.

      Prompted by Ray to test the following to confirm if the issue was configuration level of the defaul level in the new Log Service LoggerAdmin:

      add a configuration file:
      `org.osgi.service.log.admin.cfg` with the contents:
      ```ROOT="DEBUG"```

      But this had noe effect.

      Just a quick edit here: Seems that the exact same issue applies when using sl4j. So the only way to log with levels below WARN is to use liferays LogFactoryUtil which according to the documentation is depreciated.

       

      Attachments

        Activity

          People

            alfred.sampang Alfred Sampang (Inactive)
            brendan.johan.lee Brendan Johan Lee (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 7 weeks, 3 days ago

              Packages

                Version Package