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

com.shaft.properties.internal.Log4j Maven / Gradle / Ivy

Go to download

SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve. Stop reinventing the wheel. Upgrade now!

There is a newer version: 8.2.20240402
Show newest version
package com.shaft.properties.internal;

import org.aeonbits.owner.Config.Sources;

@SuppressWarnings("unused")
@Sources({"system:properties", "file:src/main/resources/properties/log4j2.properties", "file:src/main/resources/properties/default/log4j2.properties", "classpath:log4j2.properties"})
public interface Log4j extends EngineProperties {

    @Key("name")
    @DefaultValue("PropertiesConfig")
    String name();

    @Key("appender.console.type")
    @DefaultValue("Console")
    String appenderConsoleType();

    @Key("appender.console.name")
    @DefaultValue("STDOUT")
    String appenderConsoleName();

    @Key("appender.console.layout.type")
    @DefaultValue("PatternLayout")
    String appenderConsoleLayoutType();

    @Key("appender.console.layout.disableAnsi")
    @DefaultValue("false")
    boolean appenderConsoleLayoutDisableAnsi();

    @Key("appender.console.layout.pattern")
    @DefaultValue("%highlight{[%p]}{FATAL=red blink, ERROR=red bold, WARN=yellow bold, INFO=fg_#0060a8 bold, DEBUG=fg_#43b02a bold, TRACE=black} %style{%m} %style{| %-logger}{bright_black} %style{- %-thread}{bright_black} %style{- %d{hh:mm:ss a}}{bright_black} %n")
    String appenderConsoleLayoutPattern();

    @Key("appender.console.filter.threshold.type")
    @DefaultValue("ThresholdFilter")
    String appenderConsoleFilterThresholdType();

    @Key("appender.console.filter.threshold.level")
    @DefaultValue("info")
    String appenderConsoleFilterThresholdLevel();

    @Key("appender.file.type")
    @DefaultValue("File")
    String appenderFileType();

    @Key("appender.file.name")
    @DefaultValue("LOGFILE")
    String appenderFileName();

    @Key("appender.file.fileName")
    @DefaultValue("target/logs/log4j.log")
    String appenderFile_FileName();

    @Key("appender.file.layout.type")
    @DefaultValue("PatternLayout")
    String appenderFileLayoutType();

    @Key("appender.file.layout.pattern")
    @DefaultValue("[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n")
    String appenderFileLayoutPattern();

    @Key("appender.file.filter.threshold.type")
    @DefaultValue("ThresholdFilter")
    String appenderFileFilterThresholdType();

    @Key("appender.file.filter.threshold.level")
    @DefaultValue("debug")
    String appenderFileFilterThresholdLevel();

    @Key("rootLogger")
    @DefaultValue("debug, STDOUT, LOGFILE")
    String rootLogger();

    @Key("logger.app.name")
    @DefaultValue("org.apache.http.impl.client")
    String loggerAppName();

    @Key("logger.app.level")
    @DefaultValue("WARN")
    String loggerAppLevel();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy