All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rics.kairosdb.kairosdb.1.2.26.source-code.logback.xml Maven / Gradle / Ivy

Go to download

KairosDB is a fast distributed scalable time series abstraction on top of Cassandra.

There is a newer version: 1.2.28
Show newest version
<?xml version="1.0" encoding="UTF-8"?>

<!-- For assistance related to logback-translator or configuration  -->
<!-- files in general, please contact the logback user mailing list -->
<!-- at http://www.qos.ch/mailman/listinfo/logback-user             -->
<!--                                                                -->
<!-- For professional support please see                            -->
<!--    http://www.qos.ch/shop/products/professionalSupport         -->
<!--                                                                -->
<configuration>
	<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
		<encoder class="com.arpnetworking.logback.KeyValueEncoder">
			<layout class="ch.qos.logback.classic.PatternLayout">
				<pattern>%date %t [%level] %logger : %message %ex%n</pattern>
			</layout>
		</encoder>
	</appender>
	<appender name="logfile" class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>logs/kairosdb.log</file>
		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
			<timeBasedFileNamingAndTriggeringPolicy class="com.arpnetworking.logback.SizeAndRandomizedTimeBasedFNATP">
				<maxOffsetInMillis>900000</maxOffsetInMillis>
				<maxFileSize>100MB</maxFileSize>
			</timeBasedFileNamingAndTriggeringPolicy>
			<fileNamePattern>/opt/cluster-aggregator/logs/cluster-aggregator.%d{yyyy-MM-dd_HH}.%i.log.gz</fileNamePattern>
			<maxHistory>4</maxHistory>
			<cleanHistoryOnStart>true</cleanHistoryOnStart>
		</rollingPolicy>
		<encoder class="com.arpnetworking.logback.StenoEncoder">
			<injectContextLogger>true</injectContextLogger>
			<compressLoggerName>true</compressLoggerName>
			<jacksonModule class="com.fasterxml.jackson.datatype.guava.GuavaModule" />
			<jacksonModule class="com.fasterxml.jackson.datatype.jdk8.Jdk8Module" />
			<jacksonModule class="com.fasterxml.jackson.datatype.jsr310.JavaTimeModule" />
			<jacksonModule class="com.arpnetworking.configuration.jackson.akka.AkkaLoggingModule" />
			<injectBeanIdentifier>true</injectBeanIdentifier>
		</encoder>
	</appender>

	<appender name="failed_data" class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>logs/failed.log</file>
		<filter class="ch.qos.logback.classic.filter.LevelFilter">
			<level>TRACE</level>
			<onMatch>ACCEPT</onMatch>
			<onMismatch>DENY</onMismatch>
		</filter>
		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
			<!-- daily rollover -->
			<fileNamePattern>logs/failed.%d.%i.log.gz</fileNamePattern>

			<!-- keep 30 days' worth of history -->
			<maxHistory>30</maxHistory>

			<!-- or whenever the file size reaches 100MB -->
			<timeBasedFileNamingAndTriggeringPolicy
					class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
				<maxFileSize>100MB</maxFileSize>
			</timeBasedFileNamingAndTriggeringPolicy>
		</rollingPolicy>
		<encoder>
			<pattern>%d{MM-dd|HH:mm:ss.SSS} - %msg%n</pattern>
		</encoder>
	</appender>

	<logger name="failed_logger" level="TRACE" additivity="true">
		<appender-ref ref="failed_data"/>
	</logger>

	<logger name="org.kairosdb.datastore.h2.orm" level="WARN"/>

	<logger name="org.apache.kafka.streams.processor.internals" level="WARN"/>

	<!--<logger name="org.hbase.async.RegionClient" level="DEBUG"/>-->

	<!--<logger name="org.kairosdb.core.aggregator.SumAggregator" level="DEBUG"/>
	<logger name="org.kairosdb.datastore.cassandra.CassandraDatastore" level="DEBUG"/>-->

	<!--<logger name="org.kairosdb.core.http.rest.MetricsResource" level="DEBUG"/>-->

	<root level="INFO">
		<appender-ref ref="stdout"/>
		<appender-ref ref="logfile"/>
	</root>
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy