All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.runtime.logging.LogConfig Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.runtime.logging;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.logging.Level;

import io.quarkus.runtime.annotations.ConfigDocSection;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

/**
 * Logging
 */
@ConfigRoot(phase = ConfigPhase.RUN_TIME)
public final class LogConfig {

    /**
     * The log level of the root category, which is used as the default log level for all categories.
     *
     * JBoss Logging supports Apache-style log levels:
     *
     * * {@link org.jboss.logmanager.Level#FATAL}
     * * {@link org.jboss.logmanager.Level#ERROR}
     * * {@link org.jboss.logmanager.Level#WARN}
     * * {@link org.jboss.logmanager.Level#INFO}
     * * {@link org.jboss.logmanager.Level#DEBUG}
     * * {@link org.jboss.logmanager.Level#TRACE}
     *
     * In addition, it also supports the standard JDK log levels.
     *
     * @asciidoclet
     */
    @ConfigItem(defaultValue = "INFO")
    public Level level;

    /**
     * Console logging.
     * 

* Console logging is enabled by default. */ @ConfigDocSection public ConsoleConfig console; /** * File logging. *

* Logging to a file is also supported but not enabled by default. */ @ConfigDocSection public FileConfig file; /** * Syslog logging. *

* Logging to a syslog is also supported but not enabled by default. */ @ConfigDocSection public SyslogConfig syslog; /** * Logging categories. *

* Logging is done on a per-category basis. Each category can be independently configured. * A configuration that applies to a category will also apply to all sub-categories of that category, * unless there is a more specific matching sub-category configuration. */ @ConfigItem(name = "category") @ConfigDocSection public Map categories; /** * Console handlers. *

* The named console handlers configured here can be linked on one or more categories. */ @ConfigItem(name = "handler.console") @ConfigDocSection public Map consoleHandlers; /** * File handlers. *

* The named file handlers configured here can be linked to one or more categories. */ @ConfigItem(name = "handler.file") @ConfigDocSection public Map fileHandlers; /** * Syslog handlers. *

* The named syslog handlers configured here can be linked to one or more categories. */ @ConfigItem(name = "handler.syslog") @ConfigDocSection public Map syslogHandlers; /** * Log cleanup filters - internal use. */ @ConfigItem(name = "filter") @ConfigDocSection public Map filters; /** * The names of additional handlers to link to the root category. * These handlers are defined in consoleHandlers, fileHandlers, or syslogHandlers. */ @ConfigItem Optional> handlers; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy