Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setRootLoggerLevel (0.09 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/BaseSlf4jConfiguration.java

     */
    public class BaseSlf4jConfiguration implements Slf4jConfiguration {
        private static final Logger LOGGER = LoggerFactory.getLogger(BaseSlf4jConfiguration.class);
    
        public void setRootLoggerLevel(Level level) {
            LOGGER.warn("setRootLoggerLevel: operation not supported");
        }
    
        public void activate() {
            LOGGER.warn("activate(): operation not supported");
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/impl/MavenSimpleConfiguration.java

    import org.slf4j.LoggerFactory;
    
    /**
     * Configuration for slf4j-simple.
     *
     * @since 3.1.0
     */
    public class MavenSimpleConfiguration extends BaseSlf4jConfiguration {
        @Override
        public void setRootLoggerLevel(Level level) {
            String value;
            switch (level) {
                case DEBUG:
                    value = "debug";
                    break;
    
                case INFO:
                    value = "info";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/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:
                    value = "debug";
                    break;
    
                case INFO:
                    value = "info";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/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:
                    value = ch.qos.logback.classic.Level.DEBUG;
                    break;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            } else if (mavenOptions.quiet().orElse(false)) {
                context.loggerLevel = Slf4jConfiguration.Level.ERROR;
            }
            context.slf4jConfiguration.setRootLoggerLevel(context.loggerLevel);
            // else fall back to default log level specified in conf
            // see https://issues.apache.org/jira/browse/MNG-2570
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
Back to top