michael-o commented on code in PR #41:
URL: 
https://github.com/apache/maven-doxia-converter/pull/41#discussion_r1118153892


##########
pom.xml:
##########
@@ -173,17 +123,35 @@ under the License.
       <artifactId>icu4j</artifactId>
       <version>72.1</version>
     </dependency>
-
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>1.7.36</version>
+    </dependency>
+    <dependency>
+      <groupId>ch.qos.logback</groupId>
+      <artifactId>logback-classic</artifactId>
+      <version>1.2.11</version>
+    </dependency>

Review Comment:
   Why not SLF4J simple with runtime scope?



##########
src/main/java/org/apache/maven/doxia/DefaultConverter.java:
##########
@@ -370,23 +335,21 @@ private void parse(
         File outputDirectoryOrFile = relativeOutputDirectory != null
                 ? new File(output.getFile(), relativeOutputDirectory.getPath())
                 : output.getFile();
-        if (getLog().isDebugEnabled()) {
-            getLog().debug("Parsing file from '" + inputFile.getAbsolutePath() 
+ "' with the encoding '"
-                    + inputEncoding + "' to '" + 
outputDirectoryOrFile.getAbsolutePath()
-                    + "' with the encoding '" + output.getEncoding() + "'");
-        }
+        LOGGER.debug(
+                "Parsing file from '{}' with the encoding '{}'" + " to '{}' 
with the encoding '{}'",

Review Comment:
   Why not make it one string now?



##########
src/main/java/org/apache/maven/doxia/cli/ConverterCli.java:
##########
@@ -100,11 +98,9 @@ private static int doMain(String[] args) {
         }
 
         Converter converter = new DefaultConverter();
-        Log log = new SystemStreamLog();
         if (debug) {
-            log.setLogLevel(Log.LEVEL_DEBUG);
+            // TODO: programmatically adjust log level
         }

Review Comment:
   Why then not drop the empty `if` clause?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to