Re: All threads blocked while logging

2014-10-17 Thread Michael Schall
// Force DEBUG level for logger. Filter by level will be done > by appenderer > pbeakkLogger.Level = Level.Debug; > > pbeakkLogger.AddAppender(monitorAppender); > } > > > Regards, > Calin Pavel > > > On 10/17/2014 4:16 P

Re: All threads blocked while logging

2014-10-17 Thread Michael Schall
Please post your config. On Fri, Oct 17, 2014 at 4:55 AM, Calin Pavel wrote: > Hello everybody, > > I do have an .NET application (Windows Service) that collects data from a > lot of sources (DBs, log files, machines event logs, ...) and uses Log4Net > to log details of the actions / execution.

Re: Inconsistent results observed while using BufferingForwardAppender

2014-08-14 Thread Michael Schall
Try adding the thread name to your conversion to ensure it is a different thread http://opengrok.factset.com/source/s?path=ss.fffzzz&project=/platform/wauds/mainline>} %property{hostname} [%thread] %property{guid} %message%newline" /> It seems more likely that a thread is being reused. Mike

Re: Too many log files

2011-05-26 Thread Michael Schall
> > I guess the question would be – are the developers interested in folding this > into the main branch or are we stuck with making our own patched version? > > > > Thanks, Mike > > > > > > From: Michael Schall [mailto:mike.sch...@gmail.com]

Re: Too many log files

2011-05-24 Thread Michael Schall
I worked on a solution to this that we are using in production... I posted it on the list without much response... You are welcome to try this... http://article.gmane.org/gmane.comp.apache.logging.log4net.devel/885/match=rolling+files+date+time+boundaries+doesn't+support+maximum+number+backup O

Re: I don't get a log file

2011-04-08 Thread Michael Schall
Does the user running this process have access to write to c:\temp? On Fri, Apr 8, 2011 at 1:47 AM, Patrik Nylund wrote: > HI, why do I not get a logfile? > > > > > > > > > > > > > > > type="log4net.Appender.RollingFileAppender"> > > > > > > > > > > > > > > >

Re: RollingFileAppender

2011-01-17 Thread Michael Schall
r own appender if you want to change the date when size rolls the file. Mike On Jan 16, 2011, at 8:48 PM, cyz wrote: > > Hi, do you mind to provide an example? I played around with the Composite > setting, but didn't get what I really want. > > > Michael Schall wrote: >

Re: RollingFileAppender

2011-01-14 Thread Michael Schall
http://logging.apache.org/log4net/release/config-examples.html Looks like you want to have a rollingStyle="Composite" On Fri, Jan 14, 2011 at 12:01 AM, cyz wrote: > > Tried the configuration, but the backup file name is still log.t

Re: Is there an SMTP appender limit

2010-10-02 Thread Michael Schall
10 should be fine, but you could always use a distribution list. Mike On Oct 1, 2010, at 11:26 PM, Ron Grabowski wrote: > Whatever the Framework's limit is for MailMessage's To property. You'll > probably > be limited by whatever the mail server is setup to accept. > > > > - Original M

Re: forced log

2009-09-02 Thread Michael Schall
You could define a separate logger for your the ones you always want log... logger = log4net.LogManager.GetLogger("AlwaysLog") logger.info("hello world") Depending on how you usually get a logger... .GetLogger(GetType(Foo)) This has the downside of not knowing which class you a

Re: Log in more than 1 log destination for different assemblies.

2009-09-02 Thread Michael Schall
operties("AssemblyName") = > Assembly.GetExecutingAssembly.GetName.Name() >        logger = log4net.LogManager.GetLogger("ClaymoreLogger") >        logger.Info("New() - Start") >        logger.Debug("New() - Finish") >    End Sub > End Class &g

Re: Log in more than 1 log destination for different assemblies.

2009-09-02 Thread Michael Schall
When you say multiple assemblies, I assume you mean multiple processes? Logging this way is not suggested as for each log message you have to reopen the file. If you have really light logging, it would probably be ok... Look at the LockingModel: http://logging.apache.org/log4net/release/sdk/log4

Re: Experiencing locks while using AdoNetAppender

2009-08-18 Thread Michael Schall
Not sure if this has changed, but I'm pretty sure there is a database lock on inserts/updates. So only one insert at a time. You might try the BufferedForwardingAppender. It might serialize the inserts for you. On Aug 18, 2009, at 8:36 PM, Ron Grabowski wrote: I think that's how SQLite

Re: relative path for config file

2009-08-06 Thread Michael Schall
We configure our logging in code using an external xml file using log4net.Config.XmlConfigurator.ConfigureAndWatch. This way I can change my logging settings without resetting my website. Mike 2009/8/6 Karim Bourouba : > > Hi There, > > > > I understand you desire to have a central directory fo

Re: Wrapping Log4Net

2009-07-24 Thread Michael Schall
If configuring logging programatically is your need it is possible, but you do loose the ability to change it on in a running process. I wouldn't give up the ability to modify loggers/appenders/log levels of a running process without serious consideration. 2009/7/24 Radovan Raszka : > Yes, it is

Re: DEBUG vs INFO

2009-02-25 Thread Michael Schall
What appenders are you using? I assume one of them is the rolling file appender? How large is the log file produced with the setting at DEBUG vs INFO? If you need to keep the debug information you can look at the BufferingForwardingAppender. The following will buffer 255 messages before writing t

Re: How to use separate config file for log4net

2008-12-06 Thread Michael Schall
No, it is only required once for the process. Sent from my iPod On Dec 6, 2008, at 7:28 AM, wijitha <[EMAIL PROTECTED]> wrote: Hi First, thanks for replying me. now that is working. but now i wanna know, Should this piece of code be written in constructor of each class i write. Fil

Re: How to use separate config file for log4net

2008-12-05 Thread Michael Schall
You don't need anything in your app.config. Just use the log4net.Config.XmlConfigurator.ConfigureAndWatch method instead as pass it a file with your log4net definitions. Log4Net.config: ... ... This will also allow you to change logging settings while the program is runnin

Re: custom fields?

2008-10-02 Thread Michael Schall
Take a look at the documentation around contexts and how they override each other... Hopefully this will give you want you want... http://logging.apache.org/log4net/release/manual/contexts.html We use both the GlobalContext and the ThreadContext and they work great. Mike On Thu, Oct 2, 2008 at

Re: RollingLogFileAppender

2008-02-18 Thread Michael Schall
This is not an answer, but I open log files with notepad++ all the time and I don't have the MinimalLock flag set. There must be a way... On Feb 18, 2008 4:45 AM, Beyers Cronje <[EMAIL PROTECTED]> wrote: > Hi all, > > Quick question. I am using a RollingLogFileAppender on a webservice. > Logging

Re: Newbie: Log4Net or MS Logging Application Block?

2007-10-24 Thread Michael Schall
We wrap log4net and have had no issues and we have a logger for each class. I have not swapped it out as your argument suggests, but I don't like to use any library directly. It shields you not only from swapping out a library, but from breaking changes in the library you are wrapping. Most of my

Re: UDP Appender Issues

2007-08-03 Thread Michael Schall
I'm not an expert, but I have it working and here is the config. You are missing the LocalPort param. I don't know if it is required. On 8/3/07, Scott Glass <[EMAIL PR

Re: File Paths

2007-07-25 Thread Michael Schall
I had a similar problem where the same exe could be launched multiple times at the same time. You can modify the filename of the log by properties in log4net. I used the processid there may be something like assemblyName or something...

Re: no log file is created

2007-06-27 Thread Michael Schall
chemas.microsoft.com/.NetConfiguration/v2.0> > Michael Schall escribió: Are any of the other appenders working(EventViewer, Console)? If not are you configuring log4net? I see you have your configuration in your web config file. We don't do it this way. If the others are working,

Re: no log file is created

2007-06-27 Thread Michael Schall
still have the log problem, no log file is created. Do you have any suggestion on what should I try now? Regards Samuel Michael Schall escribió: You don't need to escape them. Here is my appender declaration...

Re: no log file is created

2007-06-22 Thread Michael Schall
igure it. I open the IIS tool, and in the "Default web site" properties, I setup the directory rights to write. But no change is to see. Do you need to escape the '\' characters like you do in Java for the absolute file path like "C:\\path1\\path2\\file.txt"? Thank y

Re: no log file is created

2007-06-21 Thread Michael Schall
The user the application is running as has to have rights to write to / create files in the folder where you are logging. Keep in mind that if you are debugging, that might be a different relative path than if you are running the program directly. I use an absolute path for my rolling file appen

Re: Compress & Delete old log

2006-05-30 Thread Michael Schall
e you able to roll files on a daily basis then run another program every day to compress old log files? There may be general purpose command line utilities that do this already. --- Michael Schall <[EMAIL PROTECTED]> wrote: > Is there a way with the rollingfile appender to have it compr

Compress & Delete old logs

2006-05-30 Thread Michael Schall
Is there a way with the rollingfile appender to have it compress itself as it is rolling to the next file? I would name my logs by date, and would like the old files to compress (zip, cab, some format readable without extra installs) as a new file is being created. Also, is it possible to have a