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

fess.fess.13.10.4.source-code.log4j2.xml Maven / Gradle / Ivy

There is a newer version: 14.18.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">

	<Properties>
		<Property name="domain.name" value="${sys:fess.log.name:-fess}" />
		<Property name="log.level" value="${sys:fess.log.level:-debug}" />
		<Property name="root.log.level" value="${sys:fess.log.level:-info}" />
		<Property name="log.pattern" value="%d [%t] %-5p %msg%n" />
		<Property name="log.file.basedir" value="${sys:fess.log.path:-target/logs}" />
		<Property name="backup.date.suffix" value="_%d{yyyyMMdd}" />
		<Property name="backup.max.history" value="90" />
		<Property name="audit.log.pattern" value="%msg%n" />
		<Property name="searchlog.log.pattern" value="%msg%n" />
	</Properties>

	<Appenders>
		<Routing name="Console">
			<Routes>
				<Script name="RoutingInit" language="JavaScript"><![CDATA[
					java.lang.System.getProperty("lasta.env") == null ? "Output" : "NoOutput";]]>
				</Script>
				<Route key="Output">
					<Console name="OutputConsole" target="SYSTEM_OUT">
						<PatternLayout pattern="${log.pattern}" />
					</Console>
				</Route>
				<Route key="NoOutput">
					<CountingNoOp name="DevNull" />
				</Route>
			</Routes>
		</Routing>
		<RollingFile name="AppFile" fileName="${log.file.basedir}/${domain.name}.log"
			filePattern="${log.file.basedir}/${domain.name}${backup.date.suffix}-%i.log.gz">
			<PatternLayout>
				<Pattern>${log.pattern}</Pattern>
			</PatternLayout>
			<Policies>
				<TimeBasedTriggeringPolicy />
				<SizeBasedTriggeringPolicy size="100 MB" />
			</Policies>
			<DefaultRolloverStrategy fileIndex="max" min="1"
				max="${backup.max.history}" compressionLevel="9" />
		</RollingFile>
		<RollingFile name="AuditFile" fileName="${log.file.basedir}/audit.log"
			filePattern="${log.file.basedir}/audit${backup.date.suffix}-%i.log.gz">
			<PatternLayout>
				<Pattern>${audit.log.pattern}</Pattern>
			</PatternLayout>
			<Policies>
				<TimeBasedTriggeringPolicy />
				<SizeBasedTriggeringPolicy size="100 MB" />
			</Policies>
			<DefaultRolloverStrategy fileIndex="max" min="1"
				max="${backup.max.history}" compressionLevel="9" />
		</RollingFile>
		<RollingFile name="SearchLogFile" fileName="${log.file.basedir}/searchlog.log"
			filePattern="${log.file.basedir}/searchlog${backup.date.suffix}-%i.log.gz">
			<PatternLayout>
				<Pattern>${searchlog.log.pattern}</Pattern>
			</PatternLayout>
			<Policies>
				<TimeBasedTriggeringPolicy />
				<SizeBasedTriggeringPolicy size="100 MB" />
			</Policies>
			<DefaultRolloverStrategy fileIndex="max" min="1"
				max="${backup.max.history}" compressionLevel="9" />
		</RollingFile>
	</Appenders>

	<Loggers>
		<Logger name="org.codelibs" additivity="false" level="${log.level}">
			<AppenderRef ref="Console" />
			<AppenderRef ref="AppFile" />
		</Logger>
		<Logger name="org.dbflute" additivity="false" level="${log.level}">
			<AppenderRef ref="Console" />
			<AppenderRef ref="AppFile" />
		</Logger>
		<Logger name="org.lastaflute" additivity="false" level="${log.level}">
			<AppenderRef ref="Console" />
			<AppenderRef ref="AppFile" />
		</Logger>
		<Logger name="fess.log.audit" additivity="false" level="info">
			<AppenderRef ref="Console" />
			<AppenderRef ref="AuditFile" />
		</Logger>
		<Logger name="fess.log.searchlog" additivity="false" level="info">
			<AppenderRef ref="SearchLogFile" />
		</Logger>
		<Root level="${root.log.level}">
			<AppenderRef ref="Console" />
			<AppenderRef ref="AppFile" />
		</Root>
	</Loggers>
</Configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy