You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/11/02 14:25:41 UTC

[GitHub] [maven-dependency-analyzer] slawekjaranowski commented on pull request #71: [MSHARED-1149] – Replace System.out by logger

slawekjaranowski commented on PR #71:
URL: https://github.com/apache/maven-dependency-analyzer/pull/71#issuecomment-1300524844

   I did a test, I added t oa plugin code:
   
   ```
           logger.info( "Log info 1  from Java utils" );
           logger.info( "Log info 2  from Java utils" );
           logger.fine( "Log fine from Java utils" );
   ```
   
   And I see:
   
   ```
   Nov 02, 2022 3:19:10 PM org.apache.maven.plugins.install.InstallMojo execute
   INFO: Log info 1  from Java utils
   Nov 02, 2022 3:19:10 PM org.apache.maven.plugins.install.InstallMojo execute
   INFO: Log info 2  from Java utils
   ```
   
   even I execute build with `-q` logs still is visible
   
   Next logging in `fine` level never is displayed - even with `-X`
   
   For my perspective `Java util logging` is similar as `System.out` ... in Maven plugin environment - no control what and how is displayed.
   


-- 
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-unsubscribe@maven.apache.org

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