Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for setRootLoggerLevel (0.05 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/BaseSlf4jConfiguration.java

    public class BaseSlf4jConfiguration implements Slf4jConfiguration {
        private static final Logger LOGGER = LoggerFactory.getLogger(BaseSlf4jConfiguration.class);
    
        @Override
        public void setRootLoggerLevel(Level level) {
            LOGGER.warn("setRootLoggerLevel: operation not supported");
        }
    
        @Override
        public void activate() {
            LOGGER.warn("activate(): operation not supported");
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 08 08:49:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/LookupInvokerLoggingTest.java

            if (invokerRequest.effectiveVerbose()) {
                slf4jConfiguration.setRootLoggerLevel(Slf4jConfiguration.Level.DEBUG);
            } else if (options.quiet().orElse(false)) {
                slf4jConfiguration.setRootLoggerLevel(Slf4jConfiguration.Level.ERROR);
            }
    
            // Verify that setRootLoggerLevel was called
            assertEquals(1, slf4jConfiguration.setRootLoggerLevelCallCount);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Oct 08 21:10:33 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/impl/MavenSimpleConfiguration.java

     */
    public class MavenSimpleConfiguration extends BaseSlf4jConfiguration {
        private static final Logger LOGGER = LoggerFactory.getLogger(MavenSimpleConfiguration.class);
    
        @Override
        public void setRootLoggerLevel(Level level) {
            String value =
                    switch (level) {
                        case DEBUG -> "debug";
                        case INFO -> "info";
                        case ERROR -> "error";
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Oct 08 21:10:33 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/Slf4jConfiguration.java

         * Level
         */
        enum Level {
            DEBUG,
            INFO,
            ERROR
        }
    
        /**
         * Set root logging level.
         *
         * @param level the level
         */
        void setRootLoggerLevel(Level level);
    
        /**
         * Activate logging implementation configuration (if necessary).
         */
        void activate();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Nov 08 08:49:11 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/impl/LogbackConfiguration.java

    import org.slf4j.LoggerFactory;
    
    /**
     * Configuration for slf4j-logback.
     *
     * @since 3.1.0
     */
    public class LogbackConfiguration extends BaseSlf4jConfiguration {
        @Override
        public void setRootLoggerLevel(Level level) {
            ch.qos.logback.classic.Level value =
                    switch (level) {
                        case DEBUG -> ch.qos.logback.classic.Level.DEBUG;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 17 09:56:12 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/impl/Log4j2Configuration.java

    /**
     * Configuration for slf4j-log4j2.
     *
     * @since 3.1.0
     */
    public class Log4j2Configuration extends BaseSlf4jConfiguration {
        @Override
        public void setRootLoggerLevel(Level level) {
            String value =
                    switch (level) {
                        case DEBUG -> "debug";
                        case INFO -> "info";
                        default -> "error";
                    };
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 17 09:56:12 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                context.loggerLevel = Slf4jConfiguration.Level.DEBUG;
                context.slf4jConfiguration.setRootLoggerLevel(context.loggerLevel);
            } else if (context.options().quiet().orElse(false)) {
                context.loggerLevel = Slf4jConfiguration.Level.ERROR;
                context.slf4jConfiguration.setRootLoggerLevel(context.loggerLevel);
            } else {
                // fall back to default log level specified in conf
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                cliRequest.request.setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_DEBUG);
                slf4jConfiguration.setRootLoggerLevel(Slf4jConfiguration.Level.DEBUG);
            } else if (cliRequest.quiet) {
                cliRequest.request.setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
                slf4jConfiguration.setRootLoggerLevel(Slf4jConfiguration.Level.ERROR);
            }
            // else fall back to default log level specified in conf
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 27 13:24:03 UTC 2025
    - 78.1K bytes
    - Viewed (0)
Back to top