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

tium.reference.hspc-reference-messaging.1.4.0.source-code.logback-spring.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
	<include resource="org/springframework/boot/logging/logback/base.xml" />
	<property resource="application.properties" />

	<appender name="HSPC_SUPPORT" class="ch.qos.logback.classic.net.SMTPAppender">
		<smtpHost>${mail.server.host}</smtpHost>
		<smtpPort>${mail.server.port}</smtpPort>
		<username>${mail.server.username}</username>
		<password>${mail.server.password}</password>
		<SSL>${mail.smtp.ssl.enable}</SSL>
		<STARTTLS>${mail.smtp.starttls.enable}</STARTTLS>
		<asynchronousSending>true</asynchronousSending>

		<to>${support.email}</to>
		<from>${sender.email}</from>

		<subject>${spring.profiles.active} [${spring.application.name}@${HOSTNAME}] %message</subject>

		<layout class="ch.qos.logback.classic.PatternLayout">
			<pattern>%date [%thread] %-5level %logger{36} - %message%n</pattern>
		</layout>
	</appender>

	<springProfile name="production">
		<logger name="org.hspconsortium.platform" level="ERROR">
			<appender-ref ref="HSPC_SUPPORT" />
		</logger>
	</springProfile>
</configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy