You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by Nicko Cadell <ni...@neoworks.com> on 2005/04/10 20:09:08 UTC

RE: help...

Probably a log4net-user question.

If log4net is encountering an error then you need to look at the
internal debug output. 
See http://logging.apache.org/log4net/release/faq.html#internalDebug for
details on how to enable internal debug.

Nicko

> -----Original Message-----
> From: Rohit xyz [mailto:ksrohit@lycos.com] 
> Sent: 09 April 2005 12:41
> To: log4net-dev@logging.apache.org
> Cc: Nicko Cadell
> Subject: help...
> 
> Hello,
> 
> Our application consists of Asp.Net application which uses remoting.
> We have included log4net in both web application and remoting 
> application.
> but the log4net logs the debug info only for the web 
> application and not in=
>   the remoting application.
> It doesn't even creat the log file in the remoting 
> application directory.
> we have given necessary permissions for the folders.
> 
> Help on the same is much appriciated. Thanks!
> The following is mentioned in web.config of remoting 
> application <configSections>
> 		<section name=3D"log4net" 
> type=3D"log4net.Config.Log4NetConfigurationSect=
> ionHandler,log4net" />
> 	</configSections>
> 
> <log4net>
> 		<appender name=3D"FileAppender" 
> type=3D"log4net.Appender.RollingFileAppen=
> der">
> 			<param name=3D"File" value=3D"Test.log" />
> 			<param name=3D"AppendToFile" value=3D"true" />
> 			<param name=3D"RollingStyle" value=3D"Date" />
> 			<param name=3D"MaxSizeRollBackups" 
> value=3D"30" />
> 			<param name=3D"DatePattern" 
> value=3D"yyyyMMdd" />
> 			<layout type=3D"log4net.Layout.PatternLayout">
> 				<param 
> name=3D"ConversionPattern" value=3D"%d [%t] %-5p %c [%x] - %m%n"=
>   />
> 			</layout>
> 			<filter 
> type=3D"log4net.Filter.LevelRangeFilter">
> 				<levelMin value=3D"DEBUG" />
> 				<levelMax value=3D"WARN" />
> 			</filter>
> 		</appender>
> 		<appender name=3D"EventLogAppender" 
> type=3D"log4net.Appender.EventLogAppe=
> nder">
> 			<applicationName value=3D"ApplicationName" />
> 			<layout type=3D"log4net.Layout.PatternLayout">
> 				<conversionPattern 
> value=3D"%date [%thread] %-5level %logger [%ndc] - %= 
> message%newline" />
> 			</layout>
> 			<filter 
> type=3D"log4net.Filter.LevelRangeFilter">
> 				<levelMin value=3D"ERROR" />
> 				<levelMax value=3D"FATAL" />
> 			</filter>
> 		</appender>
> 		<root>
> 			<level value=3D"DEBUG" />
> 			<appender-ref ref=3D"FileAppender" />
> 			<appender-ref ref=3D"EventLogAppender" />
> 		</root>
> 	</log4net>
> 
> Also in the AssemblyInfo file we have added this line
> [assembly: log4net.Config.DOMConfigurator(Watch=3Dtrue)]=20
> 
> 
> --
> _______________________________________________
> NEW! Lycos Dating Search. The only place to search multiple 
> dating sites at once.
> http://datingsearch.lycos.com
> 
>