Skip to content

Use the name of the current class to log of message instead of the hard coded: dev.snowdrop.logging.LoggingService #229

@cmoulliard

Description

@cmoulliard

Issue

When we log a message using the rewrite-client, then instead of using as class name de.sn.lo.LoggingService, the name of the current class of the migration tool client should be used to log

mvn -pl migration-cli quarkus:dev -Dquarkus.args="analyze ../applications/demo-spring-boot-todo-app -r ../cookbook/rules/quarkus-spring" 
...
12:08:57 INFO  [de.sn.mt.sc.ScannerSpiRegistry] (Quarkus Main Thread) Using the scanner openrewrite configured for query java.annotation
12:08:57 INFO  [de.sn.mt.sc.op.OpenRewriteQueryScanner] (Quarkus Main Thread) OpenRewrite scanner executing 1 query
12:08:57 INFO  [de.sn.lo.LoggingService] (Quarkus Main Thread) Parsing source files...
12:08:57 INFO  [de.sn.lo.LoggingService] (Quarkus Main Thread) Application absolute path: /Users/cmoullia/code/application-modernisation/migration-tool/applications/demo-spring-boot-todo-app
12:08:58 INFO  [de.sn.lo.LoggingService] (Quarkus Main Thread) Parsed 7 Java files
12:08:58 INFO  [de.sn.lo.LoggingService] (Quarkus Main Thread) Total source files parsed: 26
12:09:00 INFO  [de.sn.lo.LoggingService] (Quarkus Main Thread) Using active recipe(s): org.openrewrite.java.search.FindAnnotations
12:09:00 INFO  [de.sn.lo.LoggingService] (Quarkus Main Thread) Validating active recipes...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions