Uploaded image for project: 'FORTRESS'
  1. FORTRESS
  2. FC-289

[fortress-web] get log4j2 working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6
    • None

    Description

      Loggers not working with log4j2, this in logs:

       

      ```

      log4j:WARN No appenders could be found for logger (org.apache.directory.fortress.web.model.UserListModel).
      log4j:WARN Please initialize the log4j system properly.

      ```

       

      Change this:

       

      ```

      import org.apache.log4j.Logger;
      private static final Logger LOG = Logger.getLogger( ... );

      ```

      to

      ```

      import org.slf4j.Logger;
      import org.slf4j.LoggerFactory;
      private static final Logger LOG = LoggerFactory.getLogger( ... );

      ```

       

       

       

       

      Attachments

        Activity

          People

            smckinney Shawn McKinney
            smckinney Shawn McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: