Alerting

GlueSync natively supports sending alerts via email. The severity of the alerts catched during the process will only be error.

Standard configuration setting is explained below that uses a Gmail SMTP server for sending emails alerts:

<appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender">
   <smtpHost>smtp.gmail.com</smtpHost>
   <smtpPort>587</smtpPort>
   <STARTTLS>true</STARTTLS>
   <username>myusername@mycompany.com</username>
   <password>mysecretpassword</password>
   <asynchronousSending>true</asynchronousSending>
   <to>receiveremailaddress@mydomainname.com</to>
   <from>mysenderemailaddress@mydomainname.com</from>
   <subject>GlueSync SQL-to-NoSQL: %c{1} - %msg</subject>
   <layout class="ch.qos.logback.classic.html.HTMLLayout"/>
   <cyclicBufferTracker class="ch.qos.logback.core.spi.CyclicBufferTracker">
       <!-- send just one log entry per email -->
       <bufferSize>1</bufferSize>
   </cyclicBufferTracker>
</appender>

Note: the more the buffer size the more information your alert email will have inside respect the previous error attempt.

Be sure to add the new appender reference inside the xml node logger section for the severity needed as described below.

<logger name="com.gluesync" level="error" additivity="false">
       <appender-ref ref="EMAIL"/>
</logger>

to know more about GlueSync’s alerting you can refer to the logback’s framework documentation available at: http://logback.qos.ch/documentation.html