You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2020/12/29 00:42:44 UTC

[incubator-pinot] branch update_log4j_files created (now 1e8b34b)

This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a change to branch update_log4j_files
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


      at 1e8b34b  Adding more rolling file log4j2 configs for docker images

This branch includes the following new commits:

     new 1e8b34b  Adding more rolling file log4j2 configs for docker images

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[incubator-pinot] 01/01: Adding more rolling file log4j2 configs for docker images

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch update_log4j_files
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 1e8b34bb6f4e4d57076b552aa8e4d58d0d3ea9cf
Author: Xiang Fu <fx...@gmail.com>
AuthorDate: Mon Dec 28 16:42:19 2020 -0800

    Adding more rolling file log4j2 configs for docker images
---
 .../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..7d2584b
--- /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>
\ No newline at end of file
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-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org