Details

    • Liferay Contributor's Agreement:
      Accept
    • Similar Issues:
      Show 4 results 

      Description

      Currently, there are two ways to configure a portal-log4j-ext.xml file in Liferay.

      1. Incorporate it as part of ext-impl.jar
      2. Place the file in WEB-INF/classes/META-INF

      Neither method lend themselves to easy configuration when using Application Servers that use WAR deployments for Liferay, like WebSphere, WebLogic, or GlassFish, to name a few.

      Request: a way to set the location of the liferay logs that is outside any WAR or EAR files, like portal-ext.properties.

        Activity

        Hide
        Josef Šustáček added a comment - - edited

        I've contributed a solution to this, which allows any plugin to specify from where (within it's classloader) should the log4j configuration be read. Then the levels are applied once the plugin is deployed to Liferay – the same way as of the user went to Control Panel and set them.

        This way, each plugin could set its own levels (typically, plugins have their own "private" Java packages) or you can have one plugin setting all "portal" levels – instead of EXT.

        Josef

        Show
        Josef Šustáček added a comment - - edited I've contributed a solution to this, which allows any plugin to specify from where (within it's classloader) should the log4j configuration be read. Then the levels are applied once the plugin is deployed to Liferay – the same way as of the user went to Control Panel and set them. This way, each plugin could set its own levels (typically, plugins have their own "private" Java packages) or you can have one plugin setting all "portal" levels – instead of EXT. Josef

          People

          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              1 year, 31 weeks, 1 day ago

              Development

                Structure Helper Panel