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

jackson-databind dependency missing in the configuration document

    Details

    • Type: Documentation
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.1, 2.8.2
    • Fix Version/s: 2.9.0
    • Component/s: Documentation
    • Labels:
      None

      Description

      Was following the link:

      http://logging.apache.org/log4j/2.x/manual/configuration.html

      to configure log4j2 with yaml.

      The following links:
      http://logging.apache.org/log4j/2.x/maven-artifacts.html
      http://logging.apache.org/log4j/2.x/manual/configuration.html#YAML
      asks to import the following dependencies:

      <dependencies>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
      <version>2.8.1</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>2.8.1</version>
      </dependency>
      </dependencies>
      <dependency>
      <groupId>com.fasterxml.jackson.dataformat</groupId>
      <artifactId>jackson-dataformat-yaml</artifactId>
      <version>2.8.6</version>
      </dependency>

      But not
      <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      </dependency>

      which is a requirement.

      Enabling debug mode didn't point out about missing classes com.fasterxml.jackson.databind.ObjectMapper and com.fasterxml.jackson.databind.JsonNode which are mentioned in YamlConfigurationFactory. Such messages on missing classes is really going to help in resolving issues at the earliest. Please add the missing dependency to the YAML section. I see that it is provided for JSON configuration, but missed for YAML.

        Issue Links

          Activity

          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 024acaf3e30a59c746506f9c9d92083fb3a35325 in logging-log4j2's branch refs/heads/master from Mikael Ståldal
          [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=024acaf ]

          LOG4J2-1867 Fix JSON and YAML config examples and dependency info

          Show
          jira-bot ASF subversion and git services added a comment - Commit 024acaf3e30a59c746506f9c9d92083fb3a35325 in logging-log4j2's branch refs/heads/master from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=024acaf ] LOG4J2-1867 Fix JSON and YAML config examples and dependency info
          Hide
          mikaelstaldal Mikael Ståldal added a comment -

          In Git master, please verify and close.

          Show
          mikaelstaldal Mikael Ståldal added a comment - In Git master, please verify and close.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 024acaf3e30a59c746506f9c9d92083fb3a35325 in logging-log4j2's branch refs/heads/java9NoMultiRelease from Mikael Ståldal
          [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=024acaf ]

          LOG4J2-1867 Fix JSON and YAML config examples and dependency info

          Show
          jira-bot ASF subversion and git services added a comment - Commit 024acaf3e30a59c746506f9c9d92083fb3a35325 in logging-log4j2's branch refs/heads/java9NoMultiRelease from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=024acaf ] LOG4J2-1867 Fix JSON and YAML config examples and dependency info
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit a8fdb4ee5c19bd84fd8898d56a00cc68c9b8e2b6 in logging-log4j2's branch refs/heads/master from Mikael Ståldal
          [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=a8fdb4e ]

          LOG4J2-1867 Fix configuration documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit a8fdb4ee5c19bd84fd8898d56a00cc68c9b8e2b6 in logging-log4j2's branch refs/heads/master from Mikael Ståldal [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=a8fdb4e ] LOG4J2-1867 Fix configuration documentation

            People

            • Assignee:
              mikaelstaldal Mikael Ståldal
              Reporter:
              jamesjithin James Jithin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development