Annotation Interface Log4jProperty


@Documented @Retention(RUNTIME) @Target({TYPE,PARAMETER,FIELD}) public @interface Log4jProperty
Annotates a class or parameter that stores Log4j API configuration properties.

This annotation is required for root property classes.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Provides the default value of the property.
    Provides a name for the configuration property.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    If used as default value, points to a JVM-dependent constant.
  • Field Details

  • Element Details

    • name

      String name
      Provides a name for the configuration property.
      Default:
      ""
    • defaultValue

      String defaultValue
      Provides the default value of the property.

      This only applies to scalar values.

      If the property is of type Charset, Locale, TimeZone or ZoneId, the special constant "system" uses the JVM's default value.

      Default:
      ""