Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-403

MongoDB appender, username and password should be optional.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta9
    • Fix Version/s: 2.4
    • Component/s: Appenders
    • Labels:
      None

      Description

      In development environments it is usual to create MongoDB without any users/restrictions.
      In MongoDB appender if I don't provide usrname,password or if I provide empty values, its throwing exception even without attempting for connection.

      Getting following error: ERROR The database is not already authenticated so you must supply a username and password for the MongoDB provider.

      It would be nice if there is an ability to connect to MongoDB without user details (making them optional fields).

        Attachments

        1. LOG4J2-403.txt
          1 kB
          Jeremy Lautman

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              poorna Poorna Subhash P
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: