This is an automated email from the ASF dual-hosted git repository. xiangfu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push: new 4ea345d Adding more rolling file log4j2 configs for docker images (#6390) 4ea345d is described below commit 4ea345d229215098ae0e15ad8781fea47e1b0902 Author: Xiang Fu <fx19880...@gmail.com> AuthorDate: Mon Dec 28 19:04:10 2020 -0800 Adding more rolling file log4j2 configs for docker images (#6390) * Adding more rolling file log4j2 configs for docker images * Update pinot-controller-log4j2.xml --- .../images/pinot/etc/conf/pinot-broker-log4j2.xml | 62 ++++++++++++++++++++++ .../pinot/etc/conf/pinot-controller-log4j2.xml | 61 +++++++++++++++++++++ .../images/pinot/etc/conf/pinot-server-log4j2.xml | 61 +++++++++++++++++++++ 3 files changed, 184 insertions(+) diff --git a/docker/images/pinot/etc/conf/pinot-broker-log4j2.xml b/docker/images/pinot/etc/conf/pinot-broker-log4j2.xml new file mode 100644 index 0000000..e3715a4 --- /dev/null +++ b/docker/images/pinot/etc/conf/pinot-broker-log4j2.xml @@ -0,0 +1,62 @@ +<?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> + <Properties> + <Property name="LOG_DIR">logs/pinotBroker</Property> + </Properties> + + <Appenders> + <Console name="console" target="SYSTEM_OUT"> + <PatternLayout> + <pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</pattern> + </PatternLayout> + </Console> + <RollingFile + name="brokerLog" + fileName="${env:LOG_DIR}/pinotBroker.log" + filePattern="${env:LOG_DIR}/pinotBroker.%d{yyyy-MM-dd}.%i.log.gz" + immediateFlush="false"> + <PatternLayout> + <Pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</Pattern> + </PatternLayout> + <Policies> + <OnStartupTriggeringPolicy /> + <SizeBasedTriggeringPolicy size="20 MB" /> + <TimeBasedTriggeringPolicy /> + </Policies> + <DefaultRolloverStrategy max="10" /> + </RollingFile> + </Appenders> + <Loggers> + <Root level="info" additivity="false"> + <!-- Display warnings on the console --> + <AppenderRef ref="console" level="warn"/> + <!-- Direct most logs to the log file --> + <AppenderRef ref="brokerLog"/> + </Root> + <!-- Output broker starter logs to the console --> + <Logger name="org.apache.pinot.broker.broker.helix.HelixBrokerStarter" level="info" additivity="false"> + <AppenderRef ref="console"/> + </Logger> + <AsyncLogger name="org.reflections" level="error" additivity="false"/> + </Loggers> +</Configuration> diff --git a/docker/images/pinot/etc/conf/pinot-controller-log4j2.xml b/docker/images/pinot/etc/conf/pinot-controller-log4j2.xml new file mode 100644 index 0000000..6f5da83 --- /dev/null +++ b/docker/images/pinot/etc/conf/pinot-controller-log4j2.xml @@ -0,0 +1,61 @@ +<?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> + <Properties> + <Property name="LOG_DIR">logs/pinotController</Property> + </Properties> + <Appenders> + <Console name="console" target="SYSTEM_OUT"> + <PatternLayout> + <pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</pattern> + </PatternLayout> + </Console> + <RollingFile + name="controllerLog" + fileName="${env:LOG_DIR}/pinotController.log" + filePattern="${env:LOG_DIR}/pinotController.%d{yyyy-MM-dd}.%i.log.gz" + immediateFlush="false"> + <PatternLayout> + <Pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</Pattern> + </PatternLayout> + <Policies> + <OnStartupTriggeringPolicy /> + <SizeBasedTriggeringPolicy size="20 MB" /> + <TimeBasedTriggeringPolicy /> + </Policies> + <DefaultRolloverStrategy max="10" /> + </RollingFile> + </Appenders> + <Loggers> + <Root level="info" additivity="false"> + <!-- Display warnings on the console --> + <AppenderRef ref="console" level="warn"/> + <!-- Direct most logs to the log file --> + <AppenderRef ref="controllerLog"/> + </Root> + <!-- Output controller starter logs to the console --> + <Logger name="org.apache.pinot.controller.ControllerStarter" level="info" additivity="false"> + <AppenderRef ref="console"/> + </Logger> + <AsyncLogger name="org.reflections" level="error" additivity="false"/> + </Loggers> +</Configuration> diff --git a/docker/images/pinot/etc/conf/pinot-server-log4j2.xml b/docker/images/pinot/etc/conf/pinot-server-log4j2.xml new file mode 100644 index 0000000..dcb03a8 --- /dev/null +++ b/docker/images/pinot/etc/conf/pinot-server-log4j2.xml @@ -0,0 +1,61 @@ +<?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> + <Properties> + <Property name="LOG_DIR">logs/pinotServer</Property> + </Properties> + <Appenders> + <Console name="console" target="SYSTEM_OUT"> + <PatternLayout> + <pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</pattern> + </PatternLayout> + </Console> + <RollingFile + name="serverLog" + fileName="${env:LOG_DIR}/pinotServer.log" + filePattern="${env:LOG_DIR}/pinotServer.%d{yyyy-MM-dd}.%i.log.gz" + immediateFlush="false"> + <PatternLayout> + <Pattern>%d{yyyy/MM/dd HH:mm:ss.SSS} %p [%c{1}] [%t] %m%n</Pattern> + </PatternLayout> + <Policies> + <OnStartupTriggeringPolicy /> + <SizeBasedTriggeringPolicy size="20 MB" /> + <TimeBasedTriggeringPolicy /> + </Policies> + <DefaultRolloverStrategy max="10" /> + </RollingFile> + </Appenders> + <Loggers> + <Root level="info" additivity="false"> + <!-- Display warnings on the console --> + <AppenderRef ref="console" level="warn"/> + <!-- Direct most logs to the log file --> + <AppenderRef ref="serverLog"/> + </Root> + <!-- Output server starter logs to the console --> + <Logger name="org.apache.pinot.server.starter.helix.HelixServerStarter" level="info" additivity="false"> + <AppenderRef ref="console"/> + </Logger> + <AsyncLogger name="org.reflections" level="error" additivity="false"/> + </Loggers> +</Configuration> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org