[spring-extensions] branch main updated: JSE-40 Make --verbose the like work

Rod Widdowson rdw at steadingsoftware.com
Mon Sep 7 10:34:47 UTC 2020


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository spring-extensions.

View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=ca2e48ab4896f9797b11a79c026c58a133c4d486

The following commit(s) were added to refs/heads/main by this push:
       new  ca2e48a   JSE-40 Make --verbose the like work
ca2e48a is described below

commit ca2e48ab4896f9797b11a79c026c58a133c4d486
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Sep 7 11:23:47 2020 +0100

    JSE-40 Make --verbose the like work
    
    https://issues.shibboleth.net/jira/browse/JSE-40
    
    Add a getLogger method as a hint that the log has to be lazy
    instantiated.
---
 .../shibboleth/ext/spring/cli/AbstractCommandLineArguments.java   | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/main/java/net/shibboleth/ext/spring/cli/AbstractCommandLineArguments.java b/src/main/java/net/shibboleth/ext/spring/cli/AbstractCommandLineArguments.java
index c1d7fff..0a63074 100644
--- a/src/main/java/net/shibboleth/ext/spring/cli/AbstractCommandLineArguments.java
+++ b/src/main/java/net/shibboleth/ext/spring/cli/AbstractCommandLineArguments.java
@@ -24,6 +24,8 @@ import java.util.List;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
+import org.slf4j.Logger;
+
 import com.beust.jcommander.Parameter;
 
 import net.shibboleth.utilities.java.support.annotation.constraint.NotLive;
@@ -74,6 +76,12 @@ public abstract class AbstractCommandLineArguments implements CommandLineArgumen
     @Parameter(names = "--propertyFiles")
     @Nonnull private List<String> propertySources = new ArrayList<>();
     
+    /** Get the logger for this class.
+     * This has to be lazy-instantiated otherwise the auto-logging-level fails.
+     * @return The logger to use
+     */
+    public abstract Logger getLog();
+
     /** {@inheritDoc} */
     public boolean isVerboseOutput() {
         return verbose;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list