You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/01/16 15:31:00 UTC

[jira] [Commented] (CAMEL-18935) camel-jbang - Update to slf4j 2.0

    [ https://issues.apache.org/jira/browse/CAMEL-18935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17677439#comment-17677439 ] 

Claus Ibsen commented on CAMEL-18935:
-------------------------------------

We need to have both of these to make logging work

        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j2-impl</artifactId>
        </dependency>


> camel-jbang - Update to slf4j 2.0
> ---------------------------------
>
>                 Key: CAMEL-18935
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18935
>             Project: Camel
>          Issue Type: Task
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.0
>
>
> We need to adjust the logger so it can log again to console
> ~/workspace/deleteme/back ❯ camel run foo.java
> [jbang] [WARN] Detected missing or out-of-date dependencies in cache.
> [jbang] Resolving dependencies...
> [jbang]    org.apache.camel:camel-bom:4.0.0-SNAPSHOT@pom
> [jbang]    org.apache.camel:camel-jbang-core:4.0.0-SNAPSHOT
> [jbang]    org.apache.camel.kamelets:camel-kamelets:3.20.0
> [jbang] Dependencies resolved
> SLF4J: No SLF4J providers were found.
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
> SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
> SLF4J: Ignoring binding found at [jar:file:/Users/davsclaus/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.19.0/log4j-slf4j-impl-2.19.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)