logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Grabowski <rongrabow...@yahoo.com>
Subject RE: RollingFileAppender Stops logging in Web Service
Date Tue, 13 Dec 2005 19:18:43 GMT
The log4net.txt file was meant to help you track down problems after
the application has been running for a while. If you let you
application run for a few days or weeks and the RollingFileAppender
fails, there's a good chance the log4net.txt file will tell you what's
going wrong.

--- Fahad Sarwar <fsarwar@opaltelecom.co.uk> wrote:

> I have been using 1.2.0 Beta8 version ( or version 1:2:0:30714 ).  I
> tried
> running that system.diagnostics which produced the following log,
> which
> didn't really help using the config file detailed in previous email.
> 
> log4net: log4net assembly [log4net, Version=1.2.0.30714,
> Culture=neutral,
> PublicKeyToken=8887c5ebc944b89e]. Loaded from [Global Assembly
> Cache]. (.NET
> Runtime [1.1.4322.2032] on Microsoft Windows NT 5.1.2600.0)
> log4net: DefaultRepositorySelector: defaultRepositoryType
> [log4net.Repository.Hierarchy.Hierarchy]
> log4net: DefaultRepositorySelector: Creating repository for assembly
> [Opal.Logging, Version=2.0.2.0, Culture=neutral,
> PublicKeyToken=1701101df9f38588]
> log4net: DefaultRepositorySelector: Assembly [Opal.Logging,
> Version=2.0.2.0,
> Culture=neutral, PublicKeyToken=1701101df9f38588] Loaded From [Global
> Assembly Cache]
> log4net: DefaultRepositorySelector: Assembly [Opal.Logging,
> Version=2.0.2.0,
> Culture=neutral, PublicKeyToken=1701101df9f38588] does not have a
> DomainAttribute specified.
> log4net: DefaultRepositorySelector: Assembly [Opal.Logging,
> Version=2.0.2.0,
> Culture=neutral, PublicKeyToken=1701101df9f38588] using domain
> [log4net-default-domain] and repository type
> [log4net.Repository.Hierarchy.Hierarchy]
> log4net: DefaultRepositorySelector: Creating repository for domain
> [log4net-default-domain] using type
> [log4net.Repository.Hierarchy.Hierarchy]
> log4net: DOMConfigurator: configuring repository
> [log4net-default-domain]
> using file
>
[C:/NGS/NGSPublicMobilePrePayProvisioningService/WebServiceProjects/MobilePr
> ePayProvisioning/web.config]
> log4net: DOMConfigurator: configuring repository
> [log4net-default-domain]
> using stream
> log4net: DOMConfigurator: loading XML configuration
> log4net: DOMConfigurator: Configuring Repository
> [log4net-default-domain]
> log4net: DOMConfigurator: Configuration update mode [Merge].
> log4net: DOMConfigurator: Logger [root] Level string is [INFO].
> log4net: DOMConfigurator: Logger [root] level set to
> [name="INFO",value=40000].
> log4net: DOMConfigurator: Loading Appender [OpalLoggingAppender]
> type:
> [log4net.Appender.OpalLoggingAppender]
> log4net: DOMConfigurator: Setting Property [Threshold] to Level value
> [FATAL]
> log4net: DOMConfigurator: Created Appender [OpalLoggingAppender]
> log4net: DOMConfigurator: Adding appender named [OpalLoggingAppender]
> to
> logger [root].
> log4net: DOMConfigurator: Loading Appender [RollingFileAppender]
> type:
> [log4net.Appender.RollingFileAppender]
> log4net: DOMConfigurator: Setting Property [File] to String value
>
[C:\logs\NGSPublicMobilePrePayProvisioningService\NGSPublicMobilePrePayLog]
> log4net: DOMConfigurator: Setting Property [AppendToFile] to Boolean
> value
> [True]
> log4net: DOMConfigurator: Setting Property [RollingStyle] to
> RollingMode
> value [Date]
> log4net: DOMConfigurator: Setting Property [DatePattern] to String
> value
> [yyyyMMdd]
> log4net: DOMConfigurator: Setting Property [StaticLogFileName] to
> Boolean
> value [False]
> log4net: DOMConfigurator: Setting Property [ConversionPattern] to
> String
> value [%d - %m%n]
> log4net: DOMConfigurator: Setting Property [Layout] to object
> [log4net.Layout.PatternLayout]
> log4net: RollingFileAppender: Type = [0], r0 = [19700101], r1 =
> [19700101]
> log4net: RollingFileAppender: Type = [1], r0 = [19700101], r1 =
> [19700101]
> log4net: RollingFileAppender: Type = [2], r0 = [19700101], r1 =
> [19700101]
> log4net: RollingFileAppender: Type = [3], r0 = [19700101], r1 =
> [19700102]
> log4net: RollingFileAppender: Searching for existing files in
> [C:\logs\NGSPublicMobilePrePayProvisioningService]
> log4net: RollingFileAppender: curSizeRollBackups starts at [0]
> log4net: FileAppender: Opening file for writing
>
[C:\logs\NGSPublicMobilePrePayProvisioningService\NGSPublicMobilePrePayLog20
> 051212] append [True]
> log4net: DOMConfigurator: Created Appender [RollingFileAppender]
> log4net: DOMConfigurator: Adding appender named [RollingFileAppender]
> to
> logger [root].
> log4net: DOMConfigurator: Hierarchy Threshold []
> 
> The main reason for using the RollingFileAppender was that our
> webservices
> generate log files of 20MB a day, and it was just cleaner to use
> RollingFileAppender as it would generate a new file everyday.  Do you
> what
> kind of errors have caused by the RollingFileAppender? If things have
> been
> fixed for next release then maybe switching to log4net 1.2.9 maybe
> better.
> 
> Fahad

Mime
View raw message