<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="\\server03\logfiles\abc\log.txt"/> <appendToFile value="true"/> <rollingStyle value="Size"/> <maxSizeRollBackups value="10"/> <maximumFileSize value="10MB"/> <staticLogFileName value="true"/> <layout type="CustomLog4NetPattern.CustomPatternLayout"> <conversionPattern value="%newline%level-%date%newline%logger%newline[User]=%identity%newline[Machine]=%property{log4net:HostName}%newline[User Machine]=%UserMachine%newline[User IP]= %aspnet-request{REMOTE_ADDR}%newline%message%newline%exception%newline===========" /> </layout> </appender>
<lockingmodel type="log4net.Appender.FileAppender+MinimalLock" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)