RE: log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [locationInfo] to set object on [log4net.Layout.PatternLayout]

2017-10-26 Thread Radovan Raszka
Simply remove node from configuration. Location is property of XmlLayoutBase class, but PatternLayout doesn't inherit from this class. Radovan -Original Message- From: mkamoski [mailto:mkamo...@gmail.com] Sent: Monday, October 23, 2017 1:57 PM To: log4net-user@logging.apache.org Subjec

RE: Any way to get property filtering doing an exact match?

2016-11-15 Thread Radovan Raszka
Hi, see documentation, it explains how it works: StringMatchFilter.StringToMatch Property - The string that will be substring matched against the rendered message. If the message contains this string then the filter will match. If a match is found then the result depends on the value of AcceptO

RE: 64bit problem?

2015-02-26 Thread Radovan Raszka
It looks like powershell can't find where log4net.dll is located. As log4net is platform neutral (compiled as any CPU), I don't think 32 x 64 bit OS is issue. Where you have log4net.dll installed? Probably is good idea to put it into GAC. Or put it into folder where powershell is installed. Key is

RE: Log4net NOT working on .net 4.5

2013-04-10 Thread Radovan Raszka
Generally it is good idea to configure logging system as early as possible to avoid such problem. Good place is Main() method of the class which starts the whole application. Radovan Od: Dominik Psenner [mailto:dpsen...@gmail.com] Odesláno: 10. dubna 2013 10:29 K

RE: Log4net NOT working on .net 4.5

2013-04-10 Thread Radovan Raszka
Didn't you forget to call XmlConfigurator.Configure() or another initialization command? Just to be sure.... Radovan Raszka Od: El Tigre [mailto:el_tigre...@yahoo.com] Odesláno: 10. dubna 2013 9:04 Komu: Log4NET User Předmět: Re: Log4net NOT working on .ne

RE: New to log4net. Easy question?

2012-09-17 Thread Radovan Raszka
Hello, It is good idea to add %newline at the end of message pattern, otherwise two messages are mixed on single line Radovan -Původní zpráva- Od: SEGERS Steven (CNH) [mailto:steven.seg...@cnh.com] Odesláno: 16. září 2012 8:11 Komu: Log4NET User Předmět: RE: New to log4net. Easy questio

RE: RemotingAppender Problem

2012-04-23 Thread Radovan Raszka
Ok, that's also possible solution. But as you can see - you must call Configure() too, just on different configurator. Using of configuration file is really not necessary, you just must select appropriate configurator and configure logging system with its help Radovan __

RE: RemotingAppender Problem

2012-04-23 Thread Radovan Raszka
fa.ActivateOptions(); // activate options log4net.Config.BasicConfigurator.Configure(fa); //configure logging system Radovan Raszka Od: zafer aydin [mailto:zafera...@hotmail.com] Odesláno: 19. dubna 2012 11:05 Komu: log4net-user@logging.apache.org Předmět:

RE: Log4Net for Windows 2008 64bit machine

2012-03-23 Thread Radovan Raszka
pool settings (create new pool for this application) Radovan Raszka Od: Venkatasamy, Vanitha [mailto:vanitha.venkatas...@xpandcorp.com] Odesláno: 22. března 2012 16:47 Komu: Log4NET User Předmět: Log4Net for Windows 2008 64bit machine Hi All , We are planning to

RE: log4net advice - Changing log file name at run time

2011-11-03 Thread Radovan Raszka
You can add/remove appender dynamically at runtime. Perhaps you can create separate appender for each thread (and destroy it when thread finishes). Here's my code I'm using for enabling/disabling Fileappender at runtime: private static void enableDebugLog(bool enable) { RollingFileAppender rfa

RE: How to prevent creating log file ???

2011-10-12 Thread Radovan Raszka
Well, it is :) but some programming is needed See this post http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200708.mbox/%3c2de096d91923074a82b1e17adc480ec801359...@nasa-dtw-ex004.nasa.cpwr.corp%3E Radovan -Původní zpráva- Od: Stefan Bodewig [mailto:bode...@apache.org] Odesl

RE: log4net for .NET 4.0 / Windows 7

2011-05-27 Thread Radovan Raszka
Or configure logging programatically - this way you can set any path RR -Původní zpráva- Od: Roy Chastain [mailto:r...@roychastain.org] Odesláno: 27. května 2011 13:38 Komu: Log4NET User Předmět: RE: log4net for .NET 4.0 / Windows 7 Look at http://stackoverflow.com/questions/468989/how

RE: log4net for .NET 4.0 / Windows 7

2011-05-27 Thread Radovan Raszka
Also check if your application references Full .Net4.0, not only Client profile .Net4.0 Radovan -Původní zpráva- Od: Monish Naware [mailto:monish.naw...@mphasis.com] Odesláno: 26. května 2011 14:02 Komu: Log4NET User Předmět: RE: log4net for .NET 4.0 / Windows 7 Thanks, I will try these

RE: Configure appenders/loggers at runtime

2011-02-01 Thread Radovan Raszka
Sorry I forgot to attach the link: You can check also this thread for more information http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200805.mbox/browser It is enough to use BasicConfigurator.Configure(appender) if you are using single appender. Radovan -Původní zpráva- Od

RE: Configure appenders/loggers at runtime

2011-02-01 Thread Radovan Raszka
You can check also this thread for more information. It is enough to use BasicConfigurator.Configure(appender) if you are using single appender. Radovan -Původní zpráva- Od: cyz [mailto:zhoup...@micron.com] Odesláno: 1. února 2011 11:13 Komu: log4net-user@logging.apache.org Předmět: Re:

RE: Split a Message

2010-12-07 Thread Radovan Raszka
Hello, I'm not sure if this is possible using only log4net infrastructure. But you can use trigger on the logging table, which splits message text and writes individual parts into individual columns. Radovan Raszka -Původní zpráva- Od: bhupigs [mailto:bhupendra.pa...@hotmai

RE: Problem compile log4net for NETCF 2.0

2010-10-26 Thread Radovan Raszka
interested, I can provided CF project file with all my modifications in existing code. Radovan Raszka Od: Radovan Raszka [mailto:ras...@hasam.cz] Odesláno: 11. února 2010 12:33 Komu: Log4NET User Předmět: RE: Problem compile log4net for NETCF 2.0 even whe

RE: Date Rollover filename

2010-09-21 Thread Radovan Raszka
: Date Rollover filename It should be noted as well that I had to escape the t's in txt. -MM-dd.\tx\t From: Radovan Raszka [mailto:ras...@hasam.cz] Sent: Tuesday, September 21, 2010 1:16 AM To: Log4NET User Subject: RE: Date Rollover filename Please notice, that _doesn&#

RE: Date Rollover filename

2010-09-20 Thread Radovan Raszka
Please notice, that _doesn't_ contain extension. Your config should be like this:

RE: how often to call XmlConfigurator.Configure

2010-09-03 Thread Radovan Raszka
Log4net system should be configured only once int the "starting" class of your application (first class used in the application) or any other class but before first logging attempt.. If you configure more times, only the last configuration is used. But you can use log4net in way that every class

RE: Rotated file name control

2010-07-28 Thread Radovan Raszka
there any plans to create new release in the _near_ future? Or we can only download 1.2.10 version forever? Radovan Raszka -Původní zpráva- Od: Rob Richardson [mailto:rob.richard...@rad-con.com] Odesláno: 28. července 2010 22:18 Komu: Log4NET User Předmět: RE: Rotated file name control

RE: Controlling the log message format

2010-05-12 Thread Radovan Raszka
I think DebugAppender in log4net is something different you think ;-))) There is ConsoleAppender in log4net which works correctly according to configuration and probably corresponds to Java's ConsoleAppender. I have never used DebugAppender, but it probably send its output to the Output window in

RE: Hi all

2010-05-11 Thread Radovan Raszka
Try appender.ActivateOptions(), but I'm nor sure if it helps as you call Configure after setting up the appender R -Původní zpráva- Od: Aleš Vojáček [mailto:algid...@gmail.com] Odesláno: 11. května 2010 11:10 Komu: log4net-user@logging.apache.org Předmět: Hi all I have some problems w

RE: How to get line number and file name in custom Appender?

2010-05-04 Thread Radovan Raszka
These information can be available even in release build - if you distribute also *.pdb files for your assemblies RR -Původní zpráva- Od: Ron Grabowski [mailto:rongrabow...@yahoo.com] Odesláno: 4. května 2010 22:59 Komu: Log4NET User Předmět: Re: How to get line number and file name in

RE: Problem compile log4net for NETCF 2.0

2010-02-11 Thread Radovan Raszka
g4net for CF 2.0 ? I looks like vey tricky task... RR Od: Radovan Raszka [mailto:ras...@hasam.cz] Odesláno: 11. února 2010 7:54 Komu: Log4NET User Předmět: RE: Problem compile log4net for NETCF 2.0 I did some researches and sources seems to be good - if I set

RE: Problem compile log4net for NETCF 2.0

2010-02-10 Thread Radovan Raszka
I did some researches and sources seems to be good - if I set NETCF;NETCF_2_0 conditional compilation symbols, log4net for CF 2.0 compiles without errors. Probably there is some mistake in Nant build script RR Od: Radovan Raszka [mailto:ras...@hasam.cz

Problem compile log4net for NETCF 2.0

2010-02-10 Thread Radovan Raszka
is it correct path? Or is it possible to get binary for CF 2.0? Zip file avalable on the download page contains only binary for CF 1.0 Radovan Raszka

RE: Log4net error in WCF

2010-01-28 Thread Radovan Raszka
Hi, check if your WCF service runs when log4net is not used. Can you send complete web.config content here? Radovan Od: Michael K [mailto:michaelk2...@gmail.com] Odesláno: 29. ledna 2010 1:09 Komu: log4net-user@logging.apache.org Předmět: Log4net error in WCF

RE: Need to display date inside the log file for each entry

2009-09-15 Thread Radovan Raszka
I am using %date{HH:mm:ss,fff} without any problem If %date is used, ISO8601 format should be used. Try to switch internal debugging on - maybe it shows some problem Radovan Od: Wolfgang [mailto:wolfg...@wollinet.com] Odesláno: 7. září 2009 10:22 Komu: 'Log4

RE: relative path for config file

2009-08-05 Thread Radovan Raszka
Hi, you can try this: but I'm not sure if this works. What you are using external config file? log4net config can be written directly in web.config. RR Od: Christian Chenier [mailto:cchen...@uottawa.ca] Odesláno: 5. srpna 2009 18:16 Komu: log4net-user@logging.

RE: Rollingfileappender doesn't roll over

2009-07-30 Thread Radovan Raszka
16:21 Komu: Log4NET User Předmět: Re: Rollingfileappender doesn't roll over Hi There is no datePattern in your appender definition. Maybe this is the problem. Pascal 2009/7/30 Radovan Raszka Hello to all, I have interesting problem with RollingFileAppender in ASP.Net

Rollingfileappender doesn't roll over

2009-07-30 Thread Radovan Raszka
With regards Radovan Raszka Software development dept. HaSaM, s.r.o. Tečovice 45, 763 02 Zlín-4 tel: (+420) 577 101 261 fax: (+420) 577 101 280 www.hasam.cz

RE: Wrapping Log4Net

2009-07-23 Thread Radovan Raszka
} else { if (rfa == null) return; // already doesn't exist, no need to delete root.RemoveAppender(rfa); rfa.Close(); } } I think new log entries can not be added to the top of file. Radovan Raszka -Původní zpráva- Od: xale

RE: Error while sending Mail to smtp.gmail.com

2009-07-22 Thread Radovan Raszka
word.. Might be that is the mistake I'm doing... Please let me know.. Best regards, Sree ________ From: Radovan Raszka [mailto:ras...@hasam.cz] Sent: Wednesday, July 22, 2009 1:18 PM To: Log4NET User Subject: RE: Error while sending Mail to smtp.gmail.c

RE: Error while sending Mail to smtp.gmail.com

2009-07-21 Thread Radovan Raszka
es... Best regards, Sree ____________ From: Radovan Raszka [mailto:ras...@hasam.cz] Sent: Tuesday, July 21, 2009 1:15 AM To: Log4NET User Subject: RE: Error while sending Mail to smtp.gmail.com Works for me without any configuration exception. I had only to ch

RE: Error while sending Mail to smtp.gmail.com

2009-07-20 Thread Radovan Raszka
7; Předmět: RE: Error while sending Mail to smtp.gmail.com No this also didn't work out... ____ From: Radovan Raszka [mailto:ras...@hasam.cz] Sent: Friday, July 17, 2009 4:53 PM To: Log4NET User Subject: RE: Error while sending Mail to smtp.gmail.com

RE: Error while sending Mail to smtp.gmail.com

2009-07-17 Thread Radovan Raszka
regards, Sree ____ From: Radovan Raszka [mailto:ras...@hasam.cz] Sent: Friday, July 17, 2009 4:29 PM To: Log4NET User Subject: RE: Error while sending Mail to smtp.gmail.com do not delete ssl property, but rename it to enab

RE: Error while sending Mail to smtp.gmail.com

2009-07-17 Thread Radovan Raszka
geBody) at log4net.Appender.SmtpAppender.SendBuffer(LoggingEvent[] events) Best regards, Sree ____ From: Radovan Raszka [mailto:ras...@hasam.cz] Sent: Friday, July 17, 2009 1:44 PM To: Log4NET User Subject: RE: Error while sending Mail to smtp.gmail.com According to

RE: Error while sending Mail to smtp.gmail.com

2009-07-17 Thread Radovan Raszka
According to documentation, there is no Ssl property for SmtpAppender. According source code it is named EnableSsl, so repair your config. But I'm not sure if it helps... Radovan Raszka From: Sree [mailto:sree.opt...@gmail.com] Sent: Friday, July 17, 2009

RE: Problem using a ConsoleAppender in a Windows Form application

2009-06-26 Thread Radovan Raszka
Hello, try to allocate your console _before_ log4net is configured. Radovan Od: Michael SALOMON [mailto:michaelsalomo...@gmail.com] Odesláno: 26. června 2009 15:22 Komu: log4net-user@logging.apache.org Předmět: Problem using a ConsoleAppender in a Windows Form app

RE: Event Log Weirdness.

2009-06-19 Thread Radovan Raszka
Do you call ActivateOptions() when Threshold property is changed? Radovan -Původní zpráva- Od: James Green [mailto:james.gr...@occam-dm.com] Odesláno: 19. června 2009 12:00 Komu: Log4NET User Předmět: RE: Event Log Weirdness. I should also point out that I know the Threshold is Off ...

RE: Deleting old logs

2009-06-16 Thread Radovan Raszka
Deleting old log files is thing I'm interested in too. According to doc I think MaxSizeRollBackups has reason only when logs are rolled over size (you have more log files per day). But it probably doesn't work when log is rolled over date only (one log per day only). Is it true or not? My appende

How rollingFileAppender works?

2009-06-15 Thread Radovan Raszka
logfiles? My config file: With regards Radovan Raszka

RE: Key cannot be null error

2009-05-21 Thread Radovan Raszka
Hello, you can try this: download log4net sources and attach them to your project instead of reference to log4net.dll. Now you'll be able to debug inside of AdonetAppender and you can find what exactly is null and guess the correct value, I hope. Radovan R

RE: Log4Net in C++

2009-04-30 Thread Radovan Raszka
++ Yes, I think that is what I am looking for, thank you very much. Please note that I am writing managed code, so in this case should I use log4net instead of log4cxx? Thanks, Komyg Radovan Raszka wrote: > > If you are writing unmanaged code, you should use log4cxx, see

RE: Log4Net in C++

2009-04-30 Thread Radovan Raszka
If you are writing unmanaged code, you should use log4cxx, see http://logging.apache.org/log4cxx/index.html, http://logging.apache.org/log4cxx/apidocs/index.html. There is also log4cxx-user mailing list, try to subscribe. Log4net is for managed code only, I think. Radovan -Původní zpráva

RE: Newbie help for programatically creating log without a config file

2009-04-05 Thread Radovan Raszka
Hello, read this: http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200805.mbox/%3c2ad7eca75635f84a87792c0b2f8692487dd...@exch3.ads.bruker.de%3e It should help you Radovan -Původní zpráva- Od: mhgms2 [mailto:mhg...@gmail.com] Odesláno: 3. dubna 2009 17:18 Komu: log4net-user@l

RE: Working with C++

2009-02-18 Thread Radovan Raszka
Look at http://logging.apache.org/log4cxx/index.html Radovan Raszka Od: c...@triplebit.com [mailto:c...@triplebit.com] Odesláno: 19. února 2009 6:19 Komu: log4net-user@logging.apache.org Předmět: Working with C++ I have a mixed project with C# and C++. I use

RE: log4net query

2009-01-27 Thread Radovan Raszka
Or use diferent log storage, which allows concurent usage - for example database with AdoNetAppender. Radovan Od: johannes.fr...@kisters.de [mailto:johannes.fr...@kisters.de] Odesláno: 27. ledna 2009 13:13 Komu: Log4NET User Předmět: Re: log4net query Since F

RE: configuration problems, not logging

2008-11-27 Thread Radovan Raszka
You probably missing these lines in your web.config / app.config See http://logging.apache.org/log4net/release/manual/configuration.html, .config Files paragraph Radovan -Původní zpráva- Od: suedeuno [mailto:[EMAIL PROTECTED] Odesláno: 26. listopadu 2008 18:45 Komu: log4net-user@l

RE: Log4net.dll reference copy-local=true not behaving as expected

2008-11-26 Thread Radovan Raszka
Hello. In my opinion if you reference only MylogWrapper.dll from your project, only this DLL will be copied to the output directory. If you need to copy log4net.dll automatically to the output, you must reference MylogWrapper project from your project or create post-build event which copies log4

RE: Log4net in a windows service

2008-10-06 Thread Radovan Raszka
case but then it came down to just a system violation error each time I try to perform xmlconfigurator.configure() in the default cstor of the Myservice. Thanks From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Saturday, October 04, 2008

RE: Log4net in a windows service

2008-10-04 Thread Radovan Raszka
there something I am missing? I am trying to use your first solution. Many thanks From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 3:58 PM To: Log4NET User Subject: RE: Log4net in a windows service

RE: Log4net in a windows service

2008-10-03 Thread Radovan Raszka
d not work Placing it in myservice.exe did not produce anything Thoughts/ suggestions? From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 10:41 AM To: Log4NET User Subject: RE: Log4net in a windo

RE: Log4net in a windows service

2008-10-03 Thread Radovan Raszka
al file, and I get the the Assembly executing path, how would I pass this information down to log4net dll, so that the right appender is called. From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 10:19 AM To: Log4NET Use

RE: Log4net in a windows service

2008-10-03 Thread Radovan Raszka
d in wrong location. I prefer configure log4net using app.config file or by special xml file, whose location can be got using service's EXE location (Assembly.GetExecutingAssembly().Location) Radovan Raszka From: Jeegnesh Sheth [mailto:[

RE: AW: log4net configuration withtou Xml file

2008-05-06 Thread Radovan Raszka
Good job, Ron. How can I get log4net with this update? Download page offers log4net 1.2.10 only, no updates available. Are there plans to release newer version? Radovan From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008

RE: log4net configuration withtou Xml file

2008-05-06 Thread Radovan Raszka
Great !! I check it and use in my application. Radovan From: Knittel Bruno [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 06, 2008 9:38 AM To: Log4NET User Subject: AW: log4net configuration withtou Xml file

RE: log4net configuration withtou Xml file

2008-05-05 Thread Radovan Raszka
u'll be able to find what is missing there, let me know Radovan Raszka From: Knittel Bruno [mailto:[EMAIL PROTECTED] Sent: Monday, May 05, 2008 9:32 AM To: log4net-user@logging.apache.org Subject: log4net

RE: I'm not able to get the latest version

2008-02-05 Thread Radovan Raszka
What location did you try to download? Download directly from apache.org (http://cvs.apache.org/dist/incubator/log4net/1.2.10/incubating-log4net-1.2.10.zip) is without any problem, tested just now R -Original Message- From: Pazos Rodriguez, Rafael [mailto:[EMAIL PROTECTED] Sent: Tue

RE: Log4Net used into Class library

2008-02-05 Thread Radovan Raszka
You must configure logging system first: log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo("mypath/to/log4net.xml")); // after configuring you can get logger instance logger = log4net.LogManager.GetLogger(typeof(OnCloseSessionManager)) If you can not configure log4net using XmlConfi

RE: batching log entries until exception

2007-11-29 Thread Radovan Raszka
Try to use value="%env {COMPUTERNAME}" (see http://logging.apache.org/log4net/release/sdk/log4net.Util.PatternString .html) R From: Duder Himer [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 9:53 PM To: Log4NET User

RE: Current file of RollingFileAppender

2007-11-15 Thread Radovan Raszka
Hello, current file is always that one specified in File property. When rolling is trigerred (for example date is changed), current file is renamed and new file with name specified id File property is created. R From: Satish Musunuru [mailto:[EMAIL PROTEC

RE: Activate/Deactivate loggers during runtime correction

2007-10-24 Thread Radovan Raszka
Hello, I was working on the same problem a few month ago - simply set appender's threshold to Off. For more details, see archive of this mailing list and search for subject "Disable/enable appender for all loggers" Radovan From: [EMAIL PROTECTED] [mailto:

RE: Trouble using XmlConfigurator assembly attribute

2007-09-11 Thread Radovan Raszka
Windows services behaves a little differently compare to "normal" applications - current directory for service is %systemroot%/system32, not directory where executable resides - that's why services doesn't see log4net config file. I use in such situation this solution: configure log4net using Xmlco

RE: doubt about log4net configuration

2007-08-27 Thread Radovan Raszka
Hi Diana, log4net is easy to use, I try to explain in short. Before you can write any log entry, you must configure logging system. It is usually done during constructing the main application's class (for example in Main() method for console apps) and usually we use configuration file to do this:

RE: Disable/enable appender for all loggers

2007-08-07 Thread Radovan Raszka
named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. From: Radovan Raszka [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 5:27 PM

RE: UDP Appender Issues

2007-08-05 Thread Radovan Raszka
Hi Scott, according exception detail there is problem in remote host specification - mentioned address ::1 seems to be IPv6 type, but log4net probably supports only IPv4. If log4net can not be configured to use IPv6, you can try to uninstall IPv6 protocol pro your PC, if possible. Radovan __

RE: Disable/enable appender for all loggers

2007-08-03 Thread Radovan Raszka
appender in LogManager.GetRepository().GetAppenders()) { if (appender.Name == appenderName) { appender.Threshold = threshold; appender.ActivateOptions(); break; } } } - Original Message From: Radovan Raszka <[EM

Disable/enable appender for all loggers

2007-07-26 Thread Radovan Raszka
y logs Did I miss some settings or am I complete wrong? Thanks for any suggestions Radovan Raszka