Class ElkLoggerConfigProvider

  • All Implemented Interfaces:
    ConfigProvider

    public class ElkLoggerConfigProvider
    extends Object
    implements ConfigProvider
    Config provider that determines the connection information and configuration to send logs to an ELK server.

    Default resolution lookup keys are as follows:

    • System Property: kiwi.elk.host, kiwi.elk.port, kiwi.elk.customFields
    • Environment Variable: KIWI_ELK_HOST, KIWI_ELK_PORT, KIWI_ELK_CUSTOM_FIELDS
    • External Config File: kiwi.elk.host, kiwi.elk.port, kiwi.elk.customFields
    See Also:
    for resolution order
    • Method Detail

      • canProvide

        public boolean canProvide()
        Description copied from interface: ConfigProvider
        Determines if a provider has enough environmental awareness to provide data.
        Specified by:
        canProvide in interface ConfigProvider
        Returns:
        true if the provider can provide data, otherwise false