-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doc update, added log4net handlers, general cleanup
- Lot’s of previously missing info in the README.md file added. - Added UDP server for task failure notifications - Refactored node.js file for greater readability - Changed name of REST server from “Qlik Sense Butler” to “Butler for Qlik Sense”
- Loading branch information
mountaindude
committed
May 15, 2016
1 parent
cd6fec8
commit db53831
Showing
6 changed files
with
172 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0"?> | ||
<configuration> | ||
<!-- Mail appender--> | ||
<appender name="MailAppender" type="log4net.Appender.SmtpAppender"> | ||
<filter type="log4net.Filter.LevelRangeFilter"> | ||
<param name="levelMin" value="ERROR" /> | ||
<!--Sets the level of logging, in this case any ERROR in the log will be sent as an email--> | ||
</filter> | ||
<filter type="log4net.Filter.DenyAllFilter" /> | ||
<evaluator type="log4net.Core.LevelEvaluator"> | ||
<param name="threshold" value="ERROR"/> | ||
<!--Sets the level of logging, in this case any ERROR in the log will be sent as an email--> | ||
</evaluator> | ||
<param name="to" value="<email address to send failed task notification emails to>" /> | ||
<param name="from" value="<sender email address used in notification emails>" /> | ||
<param name="subject" value="Qlik Sense failed task (server <servername>)" /> | ||
<param name="smtpHost" value="smtp.gmail.com" /> | ||
<param name="port" value="587" /> | ||
<param name="EnableSsl" value="true" /> | ||
<param name="Authentication" value="Basic" /> | ||
<param name="username" value="<Gmail username>" /> | ||
<param name="password" value="<Gmail password>" /> | ||
<param name="bufferSize" value="0" /> <!-- Set this to 0 to make sure an email is sent on every error --> | ||
<param name="lossy" value="true" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<param name="conversionPattern" value="%newline%date %-5level %newline%property{TaskName}%newline%property{AppName}%newline%message%newline%newline%newline" /> | ||
<!--Defined conversion pattern for the output. To be able to output custom properties in the log (example, Taskname), append %property{propertyname} to the output pattern--> | ||
</layout> | ||
</appender> | ||
|
||
<appender name="NodeTaskFailureLogger" type="log4net.Appender.UdpAppender"> | ||
<filter type="log4net.Filter.LevelRangeFilter"> | ||
<param name="levelMin" value="ERROR" /> | ||
<!--Sets the level of logging, in this case any ERROR in the log will be sent as an email--> | ||
</filter> | ||
<param name="remoteAddress" value="<IP of server where Butler is running>" /> | ||
<param name="remotePort" value="9998" /> | ||
<layout type="log4net.Layout.PatternLayout"> | ||
<converter> | ||
<param name="name" value="hostname" /> | ||
<param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.HostNamePatternConverter" /> | ||
</converter> | ||
<param name="conversionpattern" value="%hostname;%property{TaskName};%property{AppName};%property{UserId}" /> | ||
</layout> | ||
</appender> | ||
|
||
<!--Send mail on task failure--> | ||
<logger name="System.Scheduler.Scheduler.Slave.Tasks.ReloadTask"> | ||
<!--Logger name identifies the component to monitor. This can be found by investigating the actual log file--> | ||
<appender-ref ref="MailAppender" /> | ||
<appender-ref ref="NodeTaskFailureLogger" /> | ||
<!--appender-ref should match the name identifying the appender. More than one appender can be configured in the same configuration file--> | ||
</logger> | ||
</configuration> |
File renamed without changes.
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