0

LogglyAppender 没有将用户名和密码识别为 logback.xml 中的字段

<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true">
    <appender name="ES" class="ch.qos.logback.ext.loggly.LogglyAppender">
        <endpointUrl>https://myelk:9243/my-data-stream/_doc/</endpointUrl>
        <username>myuser</username>
        <password>mypass</password>
        <pattern>%m</pattern>
    </appender>
    <logger name="es" level="INFO" additivity="false">
        <appender-ref ref="ES"/>
    </logger>
</configuration>
4

0 回答 0