Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
784 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,63 +1,57 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
|
|||
<!-- | <!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | 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 not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | See the License for the specific language governing permissions and | ||
limitations under the License. | limitations under the License. | ||
--> | --> | ||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" |
|
||
"http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd"> | <Configuration> | ||
<Configuration status="debug" strict="true" name="XMLConfigTest" | <Appenders> | ||
packages="org.apache.ignite.logger.log4j2"> | <Console name="CONSOLE" target="SYSTEM_OUT"> | ||
<Filter type="ThresholdFilter" level="TRACE"/> | <PatternLayout pattern="[%d{ABSOLUTE}][%-5p][%t][%c{1}] %m%n"/> | ||
<Appenders> | <ThresholdFilter level="ERROR" onMatch="DENY" onMismatch="ACCEPT"/> | ||
<Appender type="Console" name="CONSOLE_ERR"> | </Console> | ||
</Appender> |
|
||
<Routing name="Routing"> | <Console name="CONSOLE_ERR" target="SYSTEM_ERR"> | ||
<Routes pattern="$${ctx:ROUTINGKEY}"> | <PatternLayout pattern="[%d{ABSOLUTE}][%-5p][%t][%c{1}] %m%n"/> | ||
<Route key="$${ctx:ROUTINGKEY}"> | </Console> | ||
<RollingFile name="Rolling-default" fileName="work/log/ignite.log" |
|
||
filePattern="work/log/${date:yyyy-MM}/default-%d{yyyy-MM-dd}-%i.log.gz"> | <Routing name="FILE"> | ||
<PatternLayout> | <Routes pattern="$${sys:nodeId}"> | ||
<pattern>[%d{ABSOLUTE}][%-5p][%t][%c{1}] %m%n</pattern> | <Route> | ||
</PatternLayout> | <RollingFile name="Rolling-${sys:nodeId}" fileName="${sys:IGNITE_HOME}/work/log/ignite-${sys:nodeId}.log" | ||
<Policies> | filePattern="${sys:IGNITE_HOME}/work/log/ignite-${sys:nodeId}-%i-%d{yyyy-MM-dd}.log.gz"> | ||
<TimeBasedTriggeringPolicy interval="6" modulate="true" /> | <PatternLayout pattern="[%d{ABSOLUTE}][%-5p][%t][%c{1}] %m%n"/> | ||
<SizeBasedTriggeringPolicy size="10 MB" /> | <Policies> | ||
</Policies> | <TimeBasedTriggeringPolicy interval="6" modulate="true" /> | ||
</RollingFile> | <SizeBasedTriggeringPolicy size="10 MB" /> | ||
</Route> | </Policies> | ||
<Route> | </RollingFile> | ||
<RollingFile name="Rolling-${ctx:ROUTINGKEY}" fileName="work/log/ignite-${ctx:ROUTINGKEY}.log" | </Route> | ||
filePattern="work/log/${date:yyyy-MM}/ignite-${ctx:ROUTINGKEY}-%d{yyyy-MM-dd}-%i.log.gz"> | </Routes> | ||
<PatternLayout> | </Routing> | ||
<pattern>[%d{ABSOLUTE}][%-5p] $${ctx:nodeidmsg}[%t][%c{1}]%msg%n</pattern> | </Appenders> | ||
</PatternLayout> |
|
||
<Policies> | <Loggers> | ||
<TimeBasedTriggeringPolicy interval="6" modulate="true" /> | <Logger name="org" level="INFO"/> | ||
<SizeBasedTriggeringPolicy size="10 MB" /> | <Logger name="org.eclipse.jetty" level="INFO"/> | ||
</Policies> |
|
||
</RollingFile> | <Root level="INFO"> | ||
</Route> | <AppenderRef ref="CONSOLE" level="DEBUG"/> | ||
</Routes> | <AppenderRef ref="CONSOLE_ERR" level="WARN"/> | ||
</Routing> | <AppenderRef ref="FILE" level="DEBUG"/> | ||
</Appenders> | </Root> | ||
<Loggers> | </Loggers> | ||
<Logger name="org.springframework" level="warn"/> | |||
<Logger name="rg.eclipse.jetty" level="warn"/> | |||
<Logger name="org.eclipse.jetty.util.log" level="warn"/> | |||
<Logger name="org.eclipse.jetty.util.component" level="warn"/> | |||
<Logger name="com.amazonaws" level="warn"/> | |||
<Root level="TRACE"> | |||
<AppenderRef ref="Routing"/> | |||
</Root> | |||
</Loggers> | |||
</Configuration> | </Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
<?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> | |||
<Appenders> | |||
<Console name="CONSOLE_ERR" target="SYSTEM_ERR"> | |||
<PatternLayout pattern="[%d{ABSOLUTE}][%-5p][%t][%c{1}] %m%n"/> | |||
</Console> | |||
|
|||
<Routing name="FILE"> | |||
<Routes pattern="$${sys:nodeId}"> | |||
<Route> | |||
<RollingFile name="Rolling-${sys:nodeId}" fileName="${sys:IGNITE_HOME}/work/log/ignite-${sys:nodeId}.log" | |||
filePattern="${sys:IGNITE_HOME}/work/log/ignite-${sys:nodeId}-%i-%d{yyyy-MM-dd}.log.gz"> | |||
<PatternLayout pattern="[%d{ABSOLUTE}][%-5p][%t][%c{1}] %m%n"/> | |||
<Policies> | |||
<TimeBasedTriggeringPolicy interval="6" modulate="true" /> | |||
<SizeBasedTriggeringPolicy size="10 MB" /> | |||
</Policies> | |||
</RollingFile> | |||
</Route> | |||
</Routes> | |||
</Routing> | |||
</Appenders> | |||
|
|||
<Loggers> | |||
<Root level="INFO"> | |||
<AppenderRef ref="CONSOLE_ERR" level="WARN"/> | |||
<AppenderRef ref="FILE" level="DEBUG"/> | |||
</Root> | |||
</Loggers> | |||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.