Skip to main content

Configuring the appender

The QSRollingFileAppender configuration is as follows:

<appender name="MyQSRollingFileAppender" type="Qlik.Sense.Logging.log4net.Appender.QSRollingFileAppender"> <param name="threshold" value="info" /> <param name="encoding" value="utf-8" /> <param name="file" value="C:/ProgramData/Qlik/Sense/Log/output.log"/> <param name="maximumfiletime" value="720" /> <param name="maximumfilesize" value="512KB" /> <layout type="log4net.Layout.PatternLayout"> <converter> <param name="name" value="rownum" /> <param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.CounterPatternConverter" /> </converter> <converter> <param name="name" value="longIso8601date" /> <param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.Iso8601TimeOffsetPatternConverter" /> </converter> <converter> <param name="name" value="hostname" /> <param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.HostNamePatternConverter" /> </converter> <converter> <param name="name" value="guid" /> <param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.GuidPatternConverter" /> </converter> <converter> <param name="name" value="user" /> <param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.ServiceUserNameCachedPatternConverter" /> </converter> <converter> <param name="name" value="encodedmessage" /> <param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.EncodedMessagePatternConverter" /> </converter> <converter> <param name="name" value="encodedexception" /> <param name="type" value="Qlik.Sense.Logging.log4net.Layout.Pattern.EncodedExceptionPatternConverter" /> </converter> <param name="ignoresexception" value="false" /> <param name="header" value="Sequence#&#x9;Timestamp&#x9;Level&#x9;Hostname&#x9;Logger&#x9;Thread&#x9;Id&#x9;User&#x9; Message&#x9;Exception&#x9;Id2&#xD;&#xA;" /> <param name="conversionpattern" value="%rownum{9999}&#x9;%longIso8601date&#x9;%level&#x9;%hostname&#x9;%logger&#x9;%thread&#x9; %guid&#x9;%user&#x9;%encodedmessage&#x9;%encodedexception{innermostmessage}&#x9;%guid%newline" /> </layout> </appender>