| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| <Configuration name="PulsarAppenderTest" status="info" packages="org.apache.pulsar.log4j2.appender"> |
| <Appenders> |
| <Pulsar name="PulsarAppenderWithClientConf" serviceUrl="pulsar+ssl://localhost:6651" topic="persistent://t/c/n/pulsar-topic" key="key" avoidRecursive="false"> |
| <Property name="authPlugin">org.apache.pulsar.client.impl.auth.AuthenticationToken</Property> |
| <Property name="authParams">token:TOKEN</Property> |
| <Property name="tlsAllowInsecureConnection">true</Property> |
| <Property name="tlsEnableHostnameVerification">true</Property> |
| <Property name="useKeyStoreTls">true</Property> |
| <Property name="tlsTrustStorePassword">_tlsTrustStorePassword_</Property> |
| <Property name="tlsTrustStorePath">_tlsTrustStorePath_</Property> |
| <Property name="tlsTrustCertsFilePath">_tlsTrustCertsFilePath_</Property> |
| <Property name="tlsTrustStoreType">_tlsTrustStoreType_</Property> |
| <Property name="numIoThreads">8</Property> |
| <Property name="connectionsPerBroker">5</Property> |
| <Property name="enableTransaction">true</Property> |
| <Property name="producer.maxPendingMessages">20000</Property> |
| <Property name="producer.blockIfQueueFull">true</Property> |
| <PatternLayout pattern="%m"/> |
| </Pulsar> |
| </Appenders> |
| <Loggers> |
| <Root level="info"> |
| <AppenderRef ref="PulsarAppenderWithClientConf"/> |
| </Root> |
| </Loggers> |
| </Configuration> |