logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bonio Lopez" <bonio.lo...@gmx.de>
Subject Duplicate entry more info
Date Mon, 28 Aug 2006 10:03:18 GMT
Dear all,
I am sorry to post it once more. My old problem with duplicate entries is
still not solved.But I had to shift the debugging because of some urgent
work. 
I am attaching the full init code now. It is called only 1 time.
But internal debug shows that the log file is opened 2 times. I have no
idea, what the reason could be.
I thank you for any help for any help.
			
			m_LockingModel = new FileAppender.MinimalLock();
			m_FileAppender = new FileAppender();
			m_FileAppender.Layout = new
log4net.Layout.PatternLayout("[%date{dd MMM yyyy HH:mm:ss,fff}] %level
%logger  - %message%newline");
			m_FileAppender.File = path_to_log + @"\" +
m_logger_file_name;
			m_FileAppender.LockingModel = m_LockingModel;
			m_FileAppender.ImmediateFlush = true;
			m_FileAppender.AppendToFile = true;
			try {
				FileInfo _fi = new FileInfo(path_to_log +
@"\" + m_logger_file_name);

			}
			catch (System.Exception exception) {
			...

			}
			m_FileAppender.ActivateOptions();
			try {
	
log4net.Config.BasicConfigurator.Configure(m_FileAppender);
			}



[192] log4net: PatternParser: Converter [literal] Option [[] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [date] Option [dd MMM yyyy
HH:mm:ss,fff] Format [min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [literal] Option [] ] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [level] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [literal] Option [ ] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [logger] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [literal] Option [  - ] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [message] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [newline] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: FileAppender: Opening file for writing [C:\my.log] append
[False] 
[192] log4net: log4net assembly [log4net, Version=1.2.9.0, Culture=neutral,
PublicKeyToken=XXX]. Loaded from [c:\lib\log4net.dll]. (.NET Runtime
[1.1.4322.2032] on Microsoft Windows NT 5.1.2600.0) 
[192] log4net: DefaultRepositorySelector: defaultRepositoryType
[log4net.Repository.Hierarchy.Hierarchy] 
[192] log4net: DefaultRepositorySelector: Creating repository for assembly
[LogInit, Version=1.0.2431.18648, Culture=neutral, PublicKeyToken=XXX] 
[192] log4net: DefaultRepositorySelector: Assembly [LogInit,
Version=1.0.2431.18648, Culture=neutral, PublicKeyToken=XX] Loaded From
[c:\lib\LogInit.dll] 
[192] log4net: DefaultRepositorySelector: Assembly [LogInit,
Version=1.0.2431.18648, Culture=neutral, PublicKeyToken=XX] does not have a
RepositoryAttribute specified. 
[192] log4net: DefaultRepositorySelector: Assembly [LogInit,
Version=1.0.2431.18648, Culture=neutral, PublicKeyToken=XX] using repository
[log4net-default-repository] and repository type
[log4net.Repository.Hierarchy.Hierarchy] 
[192] log4net: DefaultRepositorySelector: Creating repository
[log4net-default-repository] using type
[log4net.Repository.Hierarchy.Hierarchy] 
[192] log4net: PatternParser: Converter [literal] Option [[] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [date] Option [dd MMM yyyy
HH:mm:ss,fff] Format [min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [literal] Option [] ] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [level] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [literal] Option [ ] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [logger] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [literal] Option [  - ] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [message] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: PatternParser: Converter [newline] Option [] Format
[min=-1,max=2147483647,leftAlign=False] 
[192] log4net: FileAppender: Opening file for writing [C:\my.log] append
[True] 


Mime
View raw message