Skip to main content

Example: SmtpAppender

The following example shows how to use the SmtpAppender in the local log configuration file, LocalLogConfig.xml, for the Qlik Sense Proxy Service (QPS). In the example, all QPS audit log entries at warning level are sent to an email address (

<appender name="MyMailAppender" type="log4net.Appender.SmtpAppender"> <param name="threshold" value="warn" /> <param name="to" value="" /> <param name="from" value="" /> <param name="subject" value="test logging message" /> <param name="smtpHost" value="" /> <param name="port" value="25" /> <param name="bufferSize" value="512" /> <param name="lossy" value="true" /> <layout type="log4net.Layout.PatternLayout"> <param name="conversionPattern" value="%newline%date %-5level %message%newline%newline%newline" /> </layout> </appender> <logger name="Audit.Proxy"> <appender-ref ref="MyMailAppender" /> </logger>

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!