| 08/06/2009 12:15 AM | relative path for config file |
| Replies: 7 |
Hi,
I use log4net in a C# web application and am having problems configuring it to use a relative path to point to the location of a configuration file external to web.config.
In web.config, if I use
<add key="log4net.Config.File" value="C:\somePath\log4net.config" />
all works fine. However, I would like to avoid having to hard-code the physical ... |
| 08/05/2009 5:12 PM | Programatically specify output file. |
| Replies: 2 |
Hi,is it possible to confige a RollingFileAppender in the configfile and specify the output file programatically?My usecase is that I want to log in different files (e.g. agent.5.out, agent.4.out, ...) but the appender which will be used should be configured in the config file.Any Suggentions?Thanks.Bernhard
See all the ways you can stay connected to friends and family |
| 08/04/2009 10:46 PM | stop receieving emails |
| Replies: 2 |
Hello,
how can i stop receiving emails when users ask questions on the log4net forums?
Thanks,
Ghinwa |
| 08/04/2009 9:51 PM | Mixed Logs |
| Replies: 7 |
Hi Guys,
I’ve got an application that uses log4net everywhere and logs a lot of things. Yesterday I leave running some hardware stress tests all the night, and today I found something weird in the logs.
The app ran near 1000 test, and 2 of them failed, but just before the failed test it logged something like this:
2009-08-04 04:42:41,846 [1] DEBUG XXX.Communications.Messages.R... |
| 08/04/2009 8:38 PM | Log in more than 1 log desination for different assemblies. |
| Replies: 4 |
Hi,I am new to log4net and just starting reading some documentation about it.We need to see if it would be a suitable logging solution for ourapplications.Our product (like most of them) uses a number of assemblies. I was wonderingif it would be possible for each assembly to log in its own log file (or anyother destination) even if they are loaded in the same application domain.For example consi... |
| 08/03/2009 7:12 PM | Logging with EventLogAppender in ASP.Net 2.0 |
| Replies: 0 |
Hello there,I am trying to setup logging in my ASP.Net 2.0 application usingEventLogAppenderas mentioned in the link:http://geekswithblogs.net/TimH/archive/2006/04/13/75063.aspxI have gone through all the steps at above post except # 4, which says -Register your app with the event log. You can do this either with aninstaller or manually (ie code it using theSystem.Diagnostics.EventLog.Crea... |
| 07/31/2009 10:15 PM | Defer file creation |
| Replies: 12 |
Hi Everbody,
I’m looking for a way to defer the creation of the log file until the first entry is logged. I want to use log4net for writing protocols for jobs that can be executed in my application. With my current configuration the file is created during startup which makes no sense if the job doesn’t run.
My current configuration:
 ... |
| 07/30/2009 10:14 PM | Rollingfileappender doesn't roll over |
| Replies: 2 |
Hello to all, I have interesting problem with RollingFileAppender in ASP.Net webservice. When webservice run on IIS on Windows XP, all works well, log file is rolled over days.
But when it was deployed to IIS running on the Windows 2003 Server, logging still work, but…. Log file is not rolled over, messages are still written into single file !
Has anybody similar experience or (better) knowledge... |
| 07/27/2009 11:15 PM | Location of logs when FileAppender can't open a file |
| Replies: 1 |
Hi.
Suppose that a FileAppender in use is set to log to a directory for which it has no write or create rights, what will it do, where will the log files be created?
We have a situation where, depending on the user, the process that owns the log4net logger instance will not be able to write to the designated directory for the FileAppender. In later versions of the application, ... |
| 07/19/2009 4:53 AM | Wrapping Log4Net |
| Replies: 17 |
Hi forum,I would like to use log4net in a large .net development. because i have therequirement to prepare a potential replacement of the log4net framework e.g.against ms-enterprise library or against a newer version of log4net, i wouldlike to wrap this. My way to do it is straight forward:A single assembly references the log4net framework, offes the ILog andLogManager classes, and all other pro... |
| 07/17/2009 10:12 PM | Output to multiple log files |
| Replies: 0 |
I have a process that imports data to our data system. I need to create aseperate logfile for each import. Currently I'm naming the logfile with adate time stamp plus the import description e.g. 200907171509Product.log.I'm using the RollingFileAppender.Currently I check if the appender exists and if not I create one and add itto the Logger. My appenders are named based on the import type (e.g Pr... |
| 07/17/2009 3:08 PM | RE: Error while sending Mail to smtp.gmail.com |
| Replies: 17 |
à I’m able to successfully send mail using .net code through gmail by enabling SSL.
But using log4net its given error:
My Code in app.config file:
<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
<to value="myusername@gmail.com" />
<from value=" m... |
| 07/17/2009 2:42 AM | Failed to find config section - Only after Environment.Exit() |
| Replies: 4 |
I have a .net application using log4net that works fine up until the application exits using Environment.Exit(). At that point I get the following error message:
“log4net:ERROR XmlConfigurator: Failed to find configuration section 'log4net' in the application's .config file. Check your .config file for the <log4net> and <configSections> elements. The configuration section shou... |
| 07/16/2009 4:36 AM | log4net within Excel RTD/UDF |
| Replies: 2 |
Hi, I am using C# to write an Excel RTD (real-time data) and UDF (user defined function) and having trouble figuring out how I can get log4net to configure itself. My understanding is that it uses the AppDomain.CurrentDomain.BaseDirectory to look for the configuration file. This is the Excel installation directory. I however do not install my application into that directory and d... |
| 07/14/2009 2:00 PM | Re: RollingFileAppender destination failure. |
| Replies: 0 |
Hello user list,couldn't find an answer to this type of problem.what is the best approach to reroute logs from rollingfileappender toanother one if it's destination becomes unreachable?--Sincerely,Alexander N. |
| 07/08/2009 9:49 PM | Checking configuration file for syntax errors? |
| Replies: 0 |
Hello,I wonder if there's a way to check the syntax of an XML configuration file. I'm aware of the Repository.Configured-property but I'd like to check the configuration file before applying it.Background:When using the XmlConfiguratorAttribute I want to utilize a static method which checks the denoted file. If the file is eroneous the method will return the path to a fallback config file which ... |
| 06/26/2009 11:02 PM | AUTO: Stephen Murtagh is out of the office. (returning 06/07/2009) |
| Replies: 0 |
I am out of the office until 06/07/2009.I will respond to your message when I return.If you are experiencing a problem that requires urgent assistance pleasecontact the IT Service Desk (6634).Note: This is an automated response to your message "Problem using aConsoleAppender in a Windows Form application" sent on 26/06/2009 14:21:31.This is the only notification you will receive while this... |
| 06/26/2009 9:21 PM | Problem using a ConsoleAppender in a Windows Form application |
| Replies: 6 |
Hi !I'm using log4net 1.2.10.0 and .NET 2.0I wrote a Windows Form application and I want to be able to log debug messages in a ColoredConsoleAppender (or whatever type of Console appender).If I compile my application as a Console Application, this works fine... If I compile it as a Windows Forms application, then I understand that no console is attached to my application, fair enough..In this case... |
| 06/23/2009 2:22 PM | How to know current log file name while using log4net RollingfileAppender |
| Replies: 0 |
I am using Log4Net library in my wcf service and logging usingRollingLogFileAppender.I am not able to find way to know what is the log file name which is beingused when logs are written using RollingLogFileAppender.I am creating log file path/name using -<file type="log4net.Util.PatternString" value ="\\nt1\temp\%env{COMPUTERNAME}_[%processid].log">I want to use this filename generated on ... |
| 06/22/2009 11:38 PM | Using log4net to write to remote windows event log |
| Replies: 3 |
Hello,I'm using log4net to log/trace an application and I would like to have cert= ain errors ending up in the the event log from another computer. Is there a way to do this? (RemoteSyslogAppender?)It seems that I could do around the tree and use a ForwardingAppender which together with a application acting as server on the remote computer would could write this to the event log, but it looks a ... |
| 06/22/2009 9:09 PM | How to make a part of log message uppercase |
| Replies: 2 |
Hello,I'm using AdoNetAppender to log messages. I've added %property{log4net:HostName} conversion pattern to the message parameter.<parameter> <parameterName value="@message"/> <dbType value="String"/> <size value="4000"/> <layout type="log4net.Layout.P... |
| 06/20/2009 1:13 AM | Getting AdoNetAppender parameters using Log4Net API |
| Replies: 1 |
Hello,I've defined some extra parameters for AdoNetAppender in log4net config file. Everything works fine.Here is one of my extra parameters defined: <parameter> <parameterName value="@cachetid"/> <dbType value="String"/> <size value="36"/> &nbs... |
| 06/20/2009 12:56 AM | RE: Mystery concerning configuration SOLVED. |
| Replies: 2 |
I have discovered the source of the problem. We had split out the <log4net> configuration from the web.config but with a redirection left inside the web.config of the form:
<log4net file="other_config_directory/log4net.config" />
The file at the end was of the correct syntax and could be used by log4net but only to the extent that we used the <p... |
| 06/19/2009 10:24 PM | EventLog Fun Continued. |
| Replies: 1 |
Hi All,I'm still at a total loss as to how to get log4net successfully writingto a custom event log, writing to the Application event log is workingexactly as expected.I have started using the IEventIDLog extension in order to pass overevent IDs to the log messages to see if this makes any difference.I've looked over google a lot over the last couple of days and havetried everything I have found... |
| 06/19/2009 5:50 PM | Event Log Weirdness. |
| Replies: 4 |
Hi All,I'm just looking into an odd issue. I have an EventLogAppender beingconfigured in C#. If I set this up to append to the "Application" logall is fine.However, when I ask it to create a custom event log called LogTest itsnot working as expected.Now the obvious thing is that the process doesn't have permissions ...it does. It created the new LogTest event log without proble... |
| 06/19/2009 6:41 AM | Mystery concerning configuration |
| Replies: 1 |
Greetings all,
I have an appender which works fine if specified with generic XML but not when specified with conventional log4net terms in the configuration.
Examples should help:
The following works:
<appender name="LogServiceAppender"
type="log4net.Appender.RollingFileAppender">... |
| 06/18/2009 8:27 PM | Log4net: context only for exception |
| Replies: 1 |
HiI also posted this question athttp://stackoverflow.com/questions/1011730/log4net-context-only-for-exceptionhttp://stackoverflow.com/questions/1011730/log4net-context-only-for-exception. But I think this might be a better place. Here is the question:I'm looking for a way to collect a set of data, that will only be used fordebugging, the data should only be logged if I log an exception. AFAIK it... |
| 06/17/2009 2:24 PM | Please release a version that is officially endorsed by the ASF |
| Replies: 1 |
I'm avocating the use of log4net where I work and phases like "notofficially endorsed" and incubation get translated to beta and unstable.If nobody is willing to actually release an updated version (as it seemsfrom the mailing list) how about log4net-1.2.10.1.zip and just includingthe 1.2.10 dll and version 1.2.10.1 readme file that says "now endorsed"....Michael SimmonsAnalyst ProgrammerMichael... |
| 06/16/2009 5:21 AM | Deleting old logs |
| Replies: 7 |
Hi,I am trying to just have the latest 2 log files of my application, thus Ihave configured the log4net as follows:<log4net> <appender name="RollingFile"type="log4net.Appender.RollingFileAppender"> <file value="d:\netapps\logfiles\MyApp.log" /> <appendToFile value="true" /> &nbs... |
| 06/15/2009 11:25 PM | Using AdoNetAppender |
| Replies: 18 |
Hi All,I've spent about 4 hours today trying to get this working and havetotally failed so far.I can't even really find much info on how to configure this purely inCode. In fact there is precious little I can find on the net in fact.Here is the code I'm using the set up the AdoNetAppender in my app:public static void ConfigureDatabaseAppender(string connString){PatternLayout layout = GetDe... |
| 06/15/2009 8:42 PM | Redirecting Some Log Entries |
| Replies: 2 |
Hi All,
I'm just creating a wrapper for my use. The question I have is about redirecting or temporarily turning off appenders.
Say I have two appenders added to the over all config. One is a simple file appender whilst the other is an Event log appender.
Most of the time I just want things to go to the file appender and on some occasions I want logs to just g... |
| 06/15/2009 8:26 PM | How rollingFileAppender works? |
| Replies: 0 |
Hello, I am using log4net for a couple years, but it still have some secrets… I'm using RollingFileAppender in my app and I'd like to limit number of stored log files - I wan't to keep logs for the last 10 days, any older log should be deleted.
First idea was to call once a day simple procedure, which finds all log files according its name and deletes all, which _creation_ date is older than 10 d... |
| 06/12/2009 1:15 AM | Using thread context data from a filter to decide whether to append... |
| Replies: 1 |
Hi all. I’d like to know if I’m doing this correctly. I want to set a value in ThreadContext.Properties from application code. I then want some appenders to log or not log based on this contextual information. I believe the right way to do this is to create a class that implements IFilter and apply some filters to the these appenders.
So far I’ve created my filte... |
| 06/05/2009 11:01 PM | How do I use dynamic boolean values on RollingFileAppender |
| Replies: 12 |
I have ran into a "small" brick wall. Hoping that I can find a couple of log4net guru's here. My situation.In trying to make my logging as configurable as possible in my application, I have been tinkering with trying to set the boolean values for appendToFile and staticLogFileName as dynamic values. These have a default value (currently stored in the My.Settings metadata). &nbs... |
| 05/21/2009 6:02 AM | Key cannot be null error |
| Replies: 7 |
Hello,
Could someone explain to me what the following error means please?
log4net:ERROR [AdoNetAppender] Could not open database connection []System.ArgumentNullException: Key cannot be null.Parameter name: key
I encounter this error when trying to log to my database. The rows are updated, but I get this message pop up on the console. I dont know how busy this list is,... |
| 05/20/2009 11:57 PM | Strange Syste.ArgumentNullException |
| Replies: 1 |
Hi All,
I am getting a strange System.ArgumentNullException when using a AdoNetAppender.
The message I am passing is is caught and logged to the DB, but on the console I am getting the following error:
log4net:ERROR [AdoNetAppender] Could not open database connection []System.ArgumentNullException: Key cannot be null.Parameter name: key at System.C... |
| 05/20/2009 11:55 PM | Filtering events - all EXCEPT ... |
| Replies: 2 |
I have a server deployed which is generating ‘false positive’ log4net ERROR events. These should be changed to be WARN events so that they can be filtered out by a configuration change. Unfortunately, deploying a patch to the server at this point in time means moving heaven and earth to get the support needed for QA and deployment.
What I would like to do is to devise a chan... |
| 05/20/2009 5:09 AM | Log not logging in custom filter |
| Replies: 2 |
I'm writing a custom filter (inherits from FilterSkeleton) and I want to log
errors inside the filter. The problem is that any log events created inside
the filter is not getting logged. Is there a special restriction that log
events cannot be created this far down inside the loggin pipeline?
public override FilterDecision Decide(LoggingEvent loggingEvent)
{
&nb... |
| 05/19/2009 11:24 PM | SystemNullReferenceException usgin log4net with MySql |
| Replies: 0 |
Hi There,
I have been working with log4net now for a few weeks, after some work I have managed to use the ADONetAppender to log to a MySQL DB. However, although I can get messages into my DB, I am getting the following error on my console:
log4net:ERROR [AdoNetAppender] Could not open database connection []System.ArgumentNullException: Key cannot be null.Parameter name: k... |
| 05/19/2009 5:13 AM | Remote Appender |
| Replies: 5 |
Greetings,I have been using log4net for a while and I think it rocks! It has allowedme to focus on the business functionality and have provided a very reliableand elegant platform for logging. So thanks to the people who maintain it.I have been trying all day to get the remote appender to work. I have lookedfor examples but didn't find anything other than going into the source codeand checking o... |
| 05/11/2009 10:19 PM | Number of rollbackfiles does not have the desired effect when the file name inc the process id |
| Replies: 0 |
Hi,I need to configure the settings so that the max number of files will be 10and the max file size will be 100KB.Whenever I am not including the process id in my file name the machanismworks fine. The problem starts when I have many logs with different processids (closed by closing and opening the application).The "MaxSizeRollBackups" & "maximumFileSize" properties have an effect onlyif the... |
| 05/05/2009 5:42 PM | Re: Different pattern layout based on Level |
| Replies: 0 |
Hi,
my goal is to have different pattern layout based on the Level of the Logger. This cause I'd want to include line, method name etc. only if debug level is on.
Cause the appender section can include only one child element of type layout, I'm trying using two different appenders:
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
... |
| 04/30/2009 6:58 PM | Log4Net in C++ |
| Replies: 6 |
Hi, does anyone know if I can use log4net with C++ and Visual Studio 2008Express? If so can you point me to some tutorials, I have spent quite sometime looking for those, but they seem to have completely eluded me.Also if it is not at all possible to use log4net with C++, can you recommendme another logging api?Thanks,Komyg |
| 04/19/2009 10:51 AM | Add new log programmatically and remove when finished |
| Replies: 3 |
I have an application that receives data from many locations.
I have log4net writing to several logs already and I want that to continue, but I also need to separate some of the logging out by the location the data comes from.
What's the best way to do it? I found this message in the archive, but I'm not sure how this will affect the other logging.
http://mail-archives.apache.org/mod... |
| 04/16/2009 5:26 PM | Log4net problem - Windows Mobile 6.0 - CF 3.5 - Log is written in the UDB-file? |
| Replies: 0 |
Hi all,we are using log4net 1.2.10 on a WM 6.0 with CF 3.5.Our project is developed in Visual Studio 2008 - C#.The database that we are using on the device is an Sybase .NET-UltraliteDatabase.Problem!After an update in the database on the device. Log4net starts to write thelog-messages in the database-file.When this happens the database is getting corrupted and this causes a crashfrom the applic... |
| 04/13/2009 9:47 PM | LOG4VIEW 3.0 released |
| Replies: 0 |
After months of development and testing, we are proud to announce the release of LOG4VIEW 3.0. LOG4VIEW is a comfortable and powerful reader for log4net XML- or pattern-formatted log output. LOG4VIEW can read from FileAppenders, UDPAppenders and from a TCPAppender, which is specially developed to work with LOG4VIEW in the LAN oder over the internet.This new release of LOG4VIEW offers bugfixes, spe... |
| 04/08/2009 10:30 PM | Re: Error destroying my productivity Please Help!: log4net:ERROR [] Attempted to append to closed appender named [] |
| Replies: 3 |
Ross Hinkley wrote:>> You can specify a threshold value in the appender. That would allow you> to> log messages from a given level and higher. For example, as a child to> the> appender node:>> <threshold value="INFO">>> would log Info messages, Warning messages, and so on. From there, you can> use Ron's suggestion for controlling what you wa... |
| 04/08/2009 8:54 PM | Re: Error destroying my productivity Please Help!: log4net:ERROR [] Attempted to append to closed appender named [] |
| Replies: 6 |
You can specify a threshold value in the appender. That would allow you to log messages from a given level and higher. For example, as a child to the appender node:<threshold value="INFO">would log Info messages, Warning messages, and so on. From there, you can use Ron's suggestion for controlling what you want to see overall and to manage multiple appenders.If I understand... |
| 04/08/2009 6:17 AM | Error destroying my productivity Please Help!: log4net:ERROR [] Attempted to append to closed appender named [] |
| Replies: 2 |
I cannot figure this one out.I have been tasked by my team to create a logging service so that we can allhave convenient logging without having to integrate it into our individualprojects. I decided to do this I would just build a wrapper around log4netthat makes it even simpler to use than it already is.After not too much work I got it up and running and (seemingly) working. Ihad it running on ... |
| 04/03/2009 11:17 PM | Newbie help for programatically creating log without a config file |
| Replies: 1 |
Hi:I am trying to create a test program that configures a logger completelyfrom code (I want to avoid a config/xml file for this exercise), butalthough I'm not getting any errors, no log file is created.Can anyone help?Regards,Martin.Here is my code:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text... |
| 04/02/2009 10:33 PM | When will the next version be released? |
| Replies: 13 |
Hianyone know that? |
| 03/27/2009 11:16 PM | create new File in case maximumFileSize is reached |
| Replies: 0 |
Hi,I am not sure if this is possible but i like to have log4net to create a newfile when the maximumFileSize is reached.Is there a way to do this?regards,fuppes |
| 03/26/2009 1:36 AM | Dot in logger name is causing log4net to throw exception |
| Replies: 0 |
Hello,first of all thank you for the very good logging framework.While working with Log4Net 1.2.10 I experienced the following problem:When the logger name starts with a ".", LogManager.GetLogger fails withthe following exception:System.ArgumentOutOfRangeException was unhandled Message="Index was out of range. Must be non-negative and less than thesize of the collection.\r\nParameter name: ... |
| 03/25/2009 6:46 AM | Rolling log files based on date |
| Replies: 3 |
Hi,
I want to have a log4net log file 1 per day and I want to preserve log4net log files for the last 5 days only. Could log4net rolling file appender could be configured to do that ?
Thanks in advance and regards
Navin |
| 03/24/2009 3:59 AM | Generatinf CSV file output |
| Replies: 2 |
Hi,
Is it possibel to generate a CSV file output with custom data using log4net ? I want to have a CSV file per day(which I could do using RollingFileAppender) but want to have custom comma delimited fields besides timestamp and message in there ? Is it possible ?
Thanks in advance and regards
Navin |
| 03/21/2009 1:17 AM | Can I stop log4net from posting to Console.Out.Error when it has a problem? |
| Replies: 0 |
Hello,
Basically the question is in the title. When something goes wrong with my appender i'd rather get no indication of the problem as opposed to getting a message in Console.Out.Error. Is there a way to do this?
Simon Tamman
Software Engineer Parkeon Transit
Tel: +44 (0)1202 339403 Fax: +44 (0)1202 339369 Mob: +44 (0) 7742984125 |
| 03/20/2009 6:51 AM | Using log4net in commericial application |
| Replies: 1 |
Hi,
I'm using log4net in an application. As per terms of its Apache license, it seems it would be enough to redistribute two files along with log4net dll - License.txt and Notice.txt that refers to the license.txt along with our setups. Both of these files are in log4net distribution(http://logging.apache.org/log4net/download.html). So, if I includ... |
| 03/17/2009 8:59 PM | PatternString and ThreadContext |
| Replies: 0 |
I'm currently trying to get log4net to dynamically add emails to anSmtpAppender during runtime using the ThreadContext. I can set valuesto the ThreadContext.Properties dictionary without a problem. I canalso refer to them in most instances through the appender. The valueswill show up within the pattern layout section. However when I use aPatternString on a to field for the SmtpAppender, the prop... |
| 03/17/2009 6:11 PM | XmlHierarchyConfigurator: Failed to find type |
| Replies: 2 |
Hello,I just turned on log4net's internal debugging to see everything goes clean and noticed this error:log4net:ERROR XmlHierarchyConfigurator: Failed to find type [log4net.Appender.RollingFileAppender+MinimalLock]System.TypeLoadException: Could not load type [log4net.Appender.RollingFileAppender+MinimalLock]. Tried assembly [log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115... |
| 03/15/2009 5:34 AM | How do I use the pattern appender? |
| Replies: 0 |
Hello,
I have an app that is used by approximately 220 clients right now. At times they send data every few minutes. It's very had to wade through the data and it doesn't take long before it rolls off the end. I would like to have each clients logs put in a separate folder by the client ID.
&nb... |
| 03/13/2009 4:50 PM | Duplicate debug log |
| Replies: 0 |
Hello,I use log4net 1.2.10 in an asp.net mvc site (.NET 3.5 SP1).There may be something I misunderstood regarding loggers and additivity.I have the following configuration :[code]<log4net> <appender name="Console" type="log4net.Appender.ConsoleAppender"> <layout type="log4net.Layout.PatternLayout">  ... |
| 03/13/2009 4:38 PM | Copy log4net.config when publishing ? |
| Replies: 0 |
Hello,I use log4net 1.2.10 within an ASP.NET 3.5 MVC RC2 project.Thus I initialize log4net configuration in Global.asax.cs class by this code :[code]string filename = Server.MapPath("log4net.config");XmlConfigurator.Configure(new System.IO.FileInfo(filename));[/code]This works. log4net.config defines the standard "log4net" XML tag and its content.I have an issue when publishing my project using Vi... |
| 03/05/2009 11:58 PM | Adding a logger stops another one from working...!? |
| Replies: 1 |
Hi,I'm new to log4net, and I'm having a problem with multiple loggers. I had an AdoNetAppender logger in my config file, and it worked fine,logging issues to a database.I then added another logger, to log other ERRORS to a text file. Thisactually stopped my AdoNetAppender from logging to my database.The configs are below - am I missing something obv... |
| 03/02/2009 6:18 PM | PropertyFilter |
| Replies: 0 |
Hi,I'm logging something like that :<conversionPattern value="%date %identity %-5level %logger : %message%newline" />I want to filter by identity, then I tried to use the PropertyFilter :<filter type="log4net.Filter.PropertyFilter"> <key value="Identity" /> <stringToMatch value="domain\username" /></filter>This doesn't seem to work. I also tried with "log4... |
| 02/26/2009 5:37 PM | ILayout.Format: must it be thread safe ? |
| Replies: 0 |
Hello Everyone,
I want to develop my own Xml Layout and thus took a look at the XmlLayoutBase
and XmlLayoutSchemaLog4j source code. My Layout will inherit from XmlLayoutBase.
I am just wondering, and did not found the answer in the SDK Reference:
must the ILayout.Format method be thread safe?
&nb... |
| 02/25/2009 8:33 PM | DEBUG vs INFO |
| Replies: 6 |
Hi,I just switch from DEBUG to INFO in our application logging and thedifference is pretty much stunning. E.G. our perf has gone from 23seconds down to 14 because of the change. Is this a known issue. i.e.debug log level is expected to impose this kind of overhead.ThanksGraham |
| 02/25/2009 5:13 AM | How to get a class-type based logger in multi-dll web service? |
| Replies: 0 |
I have a web service (framework 3.5) project with 5+ related projectscompiling into it, some of which are re-used in other services.I am having trouble in the satellite dlls in getting a reference to alogger based on the class type. Nothing fails hard, just no logginghappens.This works: ... = LogManager.GetLogger("Root");This fails: ... = LogManager.GetLogger(typeof(MyClass));T... |
| 02/25/2009 1:41 AM | just downloaded the latest release |
| Replies: 0 |
hey all,i noticed for the file appender in the web.configthe following doesn't work:<footer value="[Footer]\r\n;" />instead i had to do the following:<footer value="[Footer] " />what's the difference? it was working in 1.2.8 beta. How can i find a listof these and what they represent? |
| 02/24/2009 4:18 AM | where is threadcontext |
| Replies: 4 |
hi all,i was looking at NDC in the log4net SDK and read the following:The NDC is deprecated and has been replaced by the Stacks. The current NDCimplementation forwards to the ThreadContext.StacksBut i don't see it when i inspect the log4net namespace.i'm a noob to log4net please go easy.thanks,rodchar |
| 02/19/2009 6:55 PM | How to keep only logs of the last 5 days? |
| Replies: 0 |
Hi all,I configured log4net using a RollingFileAppender that rolls the log file on a daily basis.So I've tried to use rollingStyle=Date. (Or Composite). But that keeps me at least 1 file a day.How can I configure log4net to keep only log files of the last 5 days? (Older log files should be deleted like using "rollingStyle=Size" and maxSizeRollBackups = 5)Is there a way to achieve that?Thanks in ... |
| 02/19/2009 12:19 PM | Working with C++ |
| Replies: 3 |
I have a mixed project with C# and C++. I use happily the logger in C# but don't know how to use it from C++.
Is there any sample for that?
Regards
I. Lesher |
| 02/19/2009 8:47 AM | Download file is corrupted |
| Replies: 0 |
Hi There, I try to download the file, but this file can be corrupted, i try to chage browser to download the file (may be its getting cache), and i try winrar, winzip, 7-zip e more.--Bruno FrankCordeirobfscordeiro@gmail.com |
| 02/18/2009 4:49 AM | Programmatically change file path for appender with additivity = false |
| Replies: 0 |
Hi,I'm trying to programmatically change the log file destination for a logger using the following codefound on this list:public static void UpdateFileAppenderPaths(string theNewPath) { log4net.Repository.Hierarchy.Hierarchy h = (log4net.Repository.Hierarchy.Hierarchy) log4net.LogManager.GetRepository(); foreach (IAppender a in h.Root.Appenders) { if (a is Fil... |
| 02/13/2009 11:10 PM | AppendToFile with RollingFileAppender |
| Replies: 0 |
Hi All,I'm using a RollingFileAppender to maintain a daily log file for my application (ie it rolls the filesonce per day of week). Its basically working fine, however it the rollling isn't working quite as Iexpected. My goal is append to only have 1 day's worth of data in each file with anything older than aweek being overwritten. What I'm currently seeing is that today's Frid... |
| 02/11/2009 8:39 AM | RollingFileAppenders per Class |
| Replies: 2 |
Hi peoples,
I've used log4net for a while, but I've got the following problem.
I have a rolling file appender that takes everything, we'll call this the "VerboseAppender", easily configured. ALL levels go to it and everything gets logged.
I have an ADO.Net appender that takes ERROR,FATAL level and logs to a stored procedure. We'll call this the "DBAppender"
&nbs... |
| 02/09/2009 10:40 PM | Problems with Log4Net zip file |
| Replies: 4 |
Hi,I want to use the Log4Net in a new application I'm working, but I had some difficults to get the log4net bin to add on my application. I'm using .net framework 2.0.I already downloaded log4net 1.2.10 (zip) in this address: http://archive.apache.org/dist/incubator/log4net/1.2.10/incubating-log4net-1.2.10.zipWhen I click in incubating-log4net-1.2.10.zip I got an error saying the file can be corru... |
| 02/04/2009 9:40 PM | RollingFileAppender behavior on program exit |
| Replies: 1 |
Hi,I am using log4net 1.2.10 RollingFileAppender in C#/VS2005. Rolling the files by date. Everything isworking fine except that the final log file written before program exit is not rolled and remains namedas a temp file (just the name as specified in file value without the date pattern and extension). I amcalling the Shutdown function, but this does not seem to help. Att... |
| 02/04/2009 3:54 PM | Re: using a specific log file for a specific classes |
| Replies: 1 |
Pierre LHUSSIEZ wrote:>> Hi,>> coul You help Me, please, how use specific log for MORE CLASSES ??? (no> one class only)>> does log4net provide this feature?>> thanks.>> --> Pierre LHUSSIEZ>> |
| 02/03/2009 1:10 PM | Using Log4Net for Distributed Logging |
| Replies: 1 |
Hi, I am relatively new to Log4Net. I would like to know whether Log4Net can be used for logging in adistributed environment. I am looking at 2 scenarios- Scenario 1: A 20 server site. One of the server takes care of logging (Logging Server). Every other servers pushes the log information to this centralized loggingserver. Which appender can i use ? (RemoteAppe... |
| 01/31/2009 10:21 AM | Change the log level programmatically? |
| Replies: 6 |
Hopefully this is an easy question which has already been asked (and answered) before.
I searched online, but could not find a reasonable answer…
Is there a way to change the default log level of a logger via C# program control?
I don’t need the setting to persist, so I don’t want to have to change the XML config file and re-read it.
In my C# code, I have a IL... |
| 01/28/2009 6:21 PM | ADO.Net appender configuration for sybase? |
| Replies: 5 |
In log4net configuration, we have found sample xml code for most of the common RDBMS except Sybase.
Could you please tell me how can I configure the Sybase database with log4net using ADONet appender?
Thanks
Bibhakar |
| 01/28/2009 5:16 AM | Can we use log4net with .Net FW3.5 Applications? |
| Replies: 5 |
Hello,
I created a custom "Wrapper" component (in .Net FW 2.0 and Visual Studio 2005) that utilizes the log4net dll and exposes methods that enable logging for my applications. I plan to migrate this Wrapper component to use .Net FW 3.5 and Visual Studio 2008 in the near future and would like to find out if I can use log4net dll (as a reference) from a .Net FW3.5 application?
... |
| 01/27/2009 6:39 PM | log4net query |
| Replies: 3 |
Hello,
I have two applications let’s say WindowApp1 and WindowApp2 and both are writing to the same log file let’s say “c:\abc.txt”.
With log4net can it be possible to write to the same log file by both these app at the same time? I tried but couldn’t able to do that.
Please help!!
Thanks,
Bibhakar
|
| 01/21/2009 12:02 AM | Issues with Korean/Chinese locales in XmlLayout... |
| Replies: 4 |
Hi,
I am using v1.2.10 and having issues with Korean and Chinese locales. I am using XmlLayout and in the XML log file, messages (contents of the element “message”) in Korean and Chinese languages appear as “????”. I am using the correct encoding “utf-8”, however I tried with other possible encodings supporting Unicode but the problem did not get solved.
I debugged the code and found ... |
| 01/20/2009 9:29 PM | corrupt zip file? |
| Replies: 1 |
Dear community;I've been trying to download the zip file athttp://archive.apache.org/dist/incubator/log4net/1.2.10/incubating-log4net-1.2.10.zip,but for some reason, at the time of uncompressing, I'm getting a! C:\Documents and Settings\Desktop\incubating-log4net-1.2.10.zip:The archive is either in unknown format or damagedand it obviously doesn't extract anything. I'm using winrar (... |
| 01/05/2009 11:38 PM | Rich text box appender... |
| Replies: 0 |
hi,
I have a rich text box appender in place and everything is working correctly. However at runtime, the rich text box output (which is my log4net output), has all its text selected and the colour is wrong. Anybody know how I configure RichTextBox appender such that the contents of my rtb is not highlighted.. and even if it must be highlighted, anybody know how I can change this colour. ... |
| 12/24/2008 1:41 PM | My log4net is not working on releases (but works on asp.net debug mode) |
| Replies: 1 |
Hi,I'm having problems getting logs to work. Here are some configuration snippets.// -- IN MY LOG4NET.XML ------------------------------------------<?xml version="1.0" encoding="utf-8" ?><!-- This section contains the log4net configuration settings --><!-- See http://logging.apache.org/log4net/release/manual/introduction.html for more information --><log4net> ... |
| 12/20/2008 4:58 AM | stopping messages to standard out in console app |
| Replies: 1 |
I am using log4net in my .NET 3.5 console application and would like the log messages I generate to be seen in both the console standard out and the RollingFileAppender. The file output is working like a charm, but I am seeing a stream of status messages flowing to the console standard out when I execute. I would like to skip all the status information and only see the same messages I am program... |
| 12/16/2008 4:44 PM | CustomAppender and property |
| Replies: 3 |
Hi allI'm developping my own appender.Looking at some examples in the Net, I've found how to create property, I just have to use the same name in appender file and config file. - In the config file:<myProperty value="HelloWorld" /> - In the appender file:private string m_mypropertypublic string MyProperty{ get { returm m_myproperty; } set { m_myp... |
| 12/16/2008 1:12 AM | Logging to a Listbox control |
| Replies: 1 |
Hi, I am trying to set up a Listbox control so I can output the contents of alog in real time to a Winforms GUI. I am trying to use the MemoryAppenderand bind the Listbox.DataSource to the array returned by the MemoryAppenderbut all it does is output log4net.Core.LoggingEvent to the listbox andnothing else. What is the best way to approach this problem? Is it best touse another... |
| 12/06/2008 8:28 PM | Re: re: How to use separate config file for log4net |
| Replies: 1 |
HiFirst, thanks for replying me.now that is working.but now i wanna know, Should this piece of code be written in constructorof each class i write. FileInfo log4NetConfigFile = new FileInfo("log4net.config"); if (log4NetConfigFile == null || !log4NetConfigFile.Exists) throw newException("unable to find log file");log4net.Config.XmlConfigurator.ConfigureA... |
| 12/05/2008 10:46 PM | How to use separate config file for log4net |
| Replies: 3 |
Hi allI want to use log4net with my project.here is the simple example i tried.App.config :<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net"type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </configSections> <log4net> &nb... |
| 12/05/2008 6:55 PM | Coding horror deadlock |
| Replies: 1 |
HiThose of you who reads coding horror, might have seen this post:http://www.codinghorror.com/blog/archives/001192.html.Could somebody explain me how this deadlock happend? And how do I avoid toget any deadlocks myself using log4net? |
| 12/04/2008 1:42 AM | error XmlConfigurator: Failed to parse config file. |
| Replies: 2 |
I'm getting this error when running a unit test. It does complete the loggingin spite of this error. I need to resolve this so that the automated buildprocess does not fail. Any ideas?:log4net : error XmlConfigurator: Failed to parse config file. Is the<configSections> specified as: <section name="log4net"type="log4net.Config.Log4NetConfigurationSectionHandler,log4net,Version=1.2.10.0, ... |
| 12/02/2008 9:14 PM | logging into different logfiles depending on parameter |
| Replies: 1 |
Hello,I'm trying to log in separate logfiles, depending on a parameter in myapplication. Until now I'm unable to.I have read about filters and what I tried is :in my app :log4net.GlobalContext.Properties["myparam"] = "xyz";log.Info("message 1");log4net.GlobalContext.Properties["myparam"] = "abc";log.Info("message 2");I'd like to have the 2 messages in different files. The filter I used is ... |
| 12/02/2008 7:31 AM | Best Way to Set Up Massive Number of Loggers |
| Replies: 5 |
Hello-I'm working on an app that coordinates data transfers among multiple trading partners. I want to create a log file for each trading partner. I had a few ideas of how to do this, but am not sure which would be considered the optimal way. The expected number of trading partners is likely to be around 100, but could be higher. Here are my thoughts:1. Add a bunch of named loggers to my log4net.c... |
| 12/01/2008 11:32 PM | Logging issue, Repository count is 1 |
| Replies: 1 |
I have two projects setup, one uses Unity depencency injection and the otheruses StructureMap. The project using Unity will log both from unit tests andfrom the web. The StructureMap project will only log from the unit test.As a note, when I call 'log =LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);'from the Unity project the LogManager Repository count is 0.Wh... |
| 12/01/2008 10:43 PM | Strong Name Key |
| Replies: 3 |
Just curious if there is any new information regarding theavailability of = the log4net private key.I have a project that uses log4net but requires a minor modificationto the= code (RollingFileAppender RollFile method marked as virtual). This is a p= roblem b/c I also use some other assemblies (i.e.NHibernate) that use log4= net. Now I have two log4net assembliessigned w/ different ke... |
| 11/26/2008 6:22 PM | Re: Log4net.dll reference copy-local=true not behaving as expected |
| Replies: 2 |
Hi I have a custom log wrapper that utilizes log4net. I build a release assembly of MyLogWrapper.dll with log4net.dll reference set to copy-local true. Referencing MyLogWrapper.dll from MyProject with copy local set to true should result in log4net.dll being copied as well, right? I am not using any Log4net classes in MyProject as they are all wrapped in MyLogWrapper and therefore I do not... |
| 11/26/2008 5:25 AM | Issues configuring log4net programmatically |
| Replies: 0 |
Hi guys,I've got a Windows Forms Application written in C# under .NET 2.0. Inside the static main method for the application I've got the following: FileAppender appender = new FileAppender(); appender.Layout = new SimpleLayout(); appe... |
| 11/26/2008 3:05 AM | configuration problems, not logging |
| Replies: 8 |
What's missing here? Using profiler, the database never receives the call.web.config: <log4net> <appender name="ADONetAppender"type="log4net.Appender.ADONetAppender"> <bufferSize value="100" /> &... |
| 11/21/2008 7:37 PM | getting access to logfile programmatically |
| Replies: 0 |
Hi,
I have a distributed application running here and from time to time (when there's an error) we need to retrieve the logfile from the server. I need to do this programmatically. Can anybody tell me whats the best way to achieve this? I have configured my server side loggers thus;
private static ILog logger = LogManager.GetLogger(typeof(MyClass));
and they work just fine. No... |
| 11/21/2008 9:04 AM | RollingFileAppender date pattern |
| Replies: 1 |
Hi all,
I’m fine tuning the logging but it’s not quite right…
What I want is for the file to roll at midnight to a new date pattern file and roll within the same day if it reaches 50MB.
Eg.
Start up application, 21-NOV-2008, file gets created
myComp.Job Scheduler Service.20081121.log.txt
ideally, service continues to run, midnight rolls around and... |
| 11/20/2008 9:56 PM | How to add extra information to log entries transparently? |
| Replies: 0 |
Hello everybody,
I have an application with a vast number of existing log statements. Now we have the new requirement to prefix each log entry depending on some user input (i.e. no static text).
An example: In the application, there is a statement
log.debug('foo')
and we expect a log entry like
abcdef: foo
where abcdef is a hash w... |
| 11/15/2008 1:07 AM | conversionPattern parameters |
| Replies: 1 |
Where can I find a list of conversionPattern parameters? I remember there being a parameter that would display the method you were in but I can't find it anywhere.Tom P.
Get 5 GB of storage with Windows Live Hotmail. Sign up today. |
| 11/14/2008 1:56 PM | AdoNetAppender connection timeouts |
| Replies: 6 |
Hi peoples,
How does the ADO.Net appender handle intermittent connections?
I’m assuming that it’s holding a connection open and appending?
I have <bufferSize value=”0”> set to ensure an immediate call to a stored proc for logging.
So basically, do I need to worry about whether or not my connection to the other end exists?
Could the lack of a network connection ... |
| 11/12/2008 4:34 AM | Trying to set up an EXTREMELY SIMPLE event log feature... and failing terribly! Please help a newbie |
| Replies: 7 |
Hi and thanks in advance for the help.I'm tearing my hair out over here trying to get this to work: a siple loggerthat writes to the application section of the event log.This is using log4net 1.2.10.0Here is the app config:--------------------------------------------------------------<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> ... |
| 11/10/2008 10:12 PM | Rolling database table appender (AdoNetAppender) |
| Replies: 0 |
Scenario:ASP.NET 2.0 application using AdoNetAppender to log custom data to a SQLServer 2005 database table.Question:Is there a way to configure log4net so that the size of the database tableor number of records in the table don't exceed a certain threshold?For ex. Can we configure log4net to* delete oldest records if table rowcount is greater than X OR* delete oldest records if table size is gr... |
| 11/10/2008 6:50 PM | Configuring appenders through code |
| Replies: 0 |
Hi,
I'm configuring a log4net file appender through code.
1. I would like to add some machine details at the top of each log file (note: this is not a regular header! Its details are picked
Via code, and should be written once at the top of each newly opened log file). In order to add this info to each file,
I would have to get some sort of an event for a new file being ope... |
| 11/09/2008 4:36 PM | Printing a log message of level 'ALL' |
| Replies: 2 |
Hi,
In some cases I would like to print messages to the log of my application,
At a level lower than ‘DEBUG’.
I’ve noticed in the documentation that the level ‘ALL’ should do it,
But I failed to find a way to print messages for this level.
For instance ILog interface has methods for printing messages of levels: ‘DEBUG’, ‘INFO’, ‘WARN’, ‘ERROR’, ‘FATAL’,
But none for the lev... |
| 11/06/2008 6:59 PM | SQL 2005 Database Mirroring Support |
| Replies: 7 |
Does log4net support the database mirroring feature in SQL 2005?
It logs quite happily when logging to our primary database but when I failover logging ceases to work – in that nothing is logged – when I failback logging works as before. The mirroring has been configured correctly (test has been done to verify this) so I think I can rule this out.
Other than the followin... |
| 11/05/2008 7:04 PM | FW: Problems with Network Drive |
| Replies: 3 |
I am trying to log to a Network Drive using a RollingFileAppender but am having problems. When I set the file parameter value to a UNC value (\\servername\sharename\Alert.txt) it works fine However, when I try to set it to a mapped drive value which refers to the same path it fails. The internal debug is showing this: log4net:ERROR [RollingFileAppender] No output stream or fil... |
| 11/05/2008 12:37 AM | ApacheCon live video streaming available; keynotes and Apache 101 are free |
| Replies: 0 |
Can't make ApacheCon this week in New Orleans? You can still watch allthe keynotes, Apache 101 sessions, and system administration track inlive video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?annKeynotes and the Apache 101 lunchtime sessions are free; the fullsysadmin track, including httpd performance, security, and server stackadministration talk... |
| 10/31/2008 8:14 PM | Set & Get MemoryAppender from a named Logger |
| Replies: 2 |
Following statements are not supportet...// Getting a Specific Appender from a specific logger IAppender myapp =LogManager.GetLogger("MyNamedLogger1").GetAppender("MyNamedAppender");// attaching a specific Appender to a specific logger LogManager.GetLogger("MyNamedLogger1").SetAppender("MyNamedAppender");How can I access a desired Appender of a known logger directly, withoutiterating o... |
| 10/30/2008 7:53 PM | when to use strong name confusion |
| Replies: 9 |
Hello,
Not sure I understand the strong name requirements. I'm on .Net 2.0. There is already a .dll in the log4net-1.2.10\bin\net\2.0 dir. Do I need to rebuild this .dll with a strong name key or can I just use this dll as it is ? I know what a strong name is and how to generate a private/public key but still not sure how this relates to when and... |
| 10/30/2008 5:22 PM | Using log4Net from my web service (.net 2.0, C#); nothing happens |
| Replies: 2 |
My web service is using C# and .Net 2.0When a "handled" exception is thrown during the web service call, theservice should return normally but should log some information so some adminchappie can look at it later.So I thought of usnig log4net but don't know how to. After checking on thenet, it seemed easy enough:1: This is In my web.config file of the web service:********************************... |
| 10/27/2008 5:16 PM | Help me with dinamically setting up the RollingFileAppender please |
| Replies: 3 |
Hello,
I have just downloaded the log4net and I can't use the RollingFileAppender. Check my code please:
// ###################################################################
var appender = new log4net.Appender.RollingFileAppender();
appender.AppendToFile = true;
appender.File = "log.txt";
appender.MaxFileSize = 10000;
appender.MaxSizeRollBackups = 10;
appender.RollingStyle = log... |
| 10/25/2008 9:46 PM | log4net support for .NET framework 3.5 |
| Replies: 2 |
I just want to know that which version of log4net support Microsoft .NETframework 3.5? Is there any such version exists at all till now?--View this message in context: http://www.nabble.com/log4net-support-for-.NET-framework-3.5-tp20164275p20164275.htmlSent from the Log4net - Dev mailing list archive at Nabble.com. |
| 10/23/2008 1:55 PM | Partial configuration of an AdoNetAppender in the config File |
| Replies: 1 |
Good Morning,Is it possible to partially configure an AdoNetAppender with an config File and later pass him in the source code the connetion string and type?So I try to use the sample config below to to configur with XMLConfiguration and then pass the connetion string and type but I don't get it to work?Any Suggestions?Thanks in advance.RegardsBernhardSample Config.</log4net>
&n... |
| 10/23/2008 8:52 AM | Can't get C# program to use log4net.xml |
| Replies: 2 |
Hi -1. I'm using C# and Visual Studio 20082. I created a minimal C# that invokes log4net:using log4net;using log4net.Config;... public class DeleteLogs2 { private static readonly ILog logger = LogManager.GetLogger (typeof (DeleteLogs2)); static void Main (string[] arg... |
| 10/22/2008 8:08 PM | How to pass password to AdoNetAppender? |
| Replies: 8 |
Hi,another Question from the new guy.I want to pass the username and password for the database to the AdoNetAppender.The two ways I found were:* Plaintext in the config file.* 'Plaintext' in the sourcecode.Both ways are not optimal, so were I missing something? Is there a smarter way of passing a password?Thanks in advance.RegardsBernhard
Connect to the next generation of MSN Messenger Ge... |
| 10/21/2008 9:15 PM | Abortion with non Empty Buffer |
| Replies: 1 |
Hi,I am using log4net with an AdoNetAppender and wondering what happens when the program exits on message 125 when the buffersize is set to 10.It seems that the messages 121-125 are dropped to nirvana. Is this assumption right and how can I work around?Thanks in advance.Bernhard
Explore the seven wonders of the world Learn more! |
| 10/16/2008 9:28 PM | AdoNetAppender Connection String |
| Replies: 2 |
Hello.
I am trying to retrieve the connection string within my logging.config (a separate file outside the web.config in case that is significant) file.
I am using the code below but it seems to use a default(?) logger which is not defined in my config file (a TextWriterAppender).
I am wondering if this is occurring because the config file cant be located or the code I... |
| 10/13/2008 3:39 PM | Not able to see full log messages if file size crosses the maximum file size set in app.config |
| Replies: 0 |
Hi all,am using log4net for my project.In log4net am getting the issue when the file size crosses the maximum filesize set in app.config(e.g. 1MB etc).Am not able to view the file .2 files are created( if crossed 1MB).I cansee one line in one log file(currently updated line).If next line comingmeans, the last updated line in the log is goes to another log file.i am notabl... |
| 10/11/2008 12:05 AM | Log4Net and MSTest |
| Replies: 1 |
Does anyone use MSTest and if so, have you had success in getting logging to work with your tests?
Normally, in my application log4net is configured by a call to:
log4net.Config.XmlConfigurator.Configure(logConfigFile);
But, I’m writing tests for one of my library projects, so I don’t see a good place to put such a statement.
I thought I would try using t... |
| 10/09/2008 1:01 PM | Port Number in logged message |
| Replies: 2 |
Hi
Is there a config setting that enables log4net to put “port” and “hostname” information in the log messages when running in a ASP.NET Webservice (or website) ?
I see conversion pattern in the FAQ and wonder if I there is a %port available?
<conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" />
My use case is that I have multipl... |
| 10/07/2008 5:53 AM | RollingFileAppender datePattern |
| Replies: 1 |
I have a RollingFileAppender defined like so: <appender name="XMLRollingFile" type="log4net.Appender.RollingFileAppender"> <threshold value="DEBUG" /> <staticLogFileName value="true" /> <file value="MyLog.xml" /> <appendToFile value="true" /> <rollingStyle value="Date" /... |
| 10/05/2008 9:43 PM | Using log4Net to log multiple files by different users/tasks |
| Replies: 7 |
I have an asp.net site in which different users run different tasks. Each individual task is managed by a TaskManager that I'm writing. While each task is running it has the opportunity to log to it's own log file. I'm trying to use Log4Net to do this, but so far I've been unable to figure out how exactly to accomplish this. Any advice would be appreciated.
So far,... |
| 10/05/2008 12:42 AM | Fwd: CFP open for ApacheCon Europe 2009 |
| Replies: 0 |
Begin forwarded message:> From: Noirin Shirley <noirin@apache.org>> Date: October 2, 2008 3:22:06 AM CDT...> If you only have thirty seconds:>> The Call for Papers for ApacheCon Europe 2009, to be held in> Amsterdam, from 23rd to 27th March, is now open! Submit your> proposals at http://eu.apachecon.com/c/aceu2009/cfp/ before 24th> October.>> Remember that ear... |
| 10/03/2008 9:57 PM | Log4net in a windows service |
| Replies: 14 |
Hi,
I have a logging DLL which uses log4net to log to a database. I have c# application which calls this logging DLL and log to the database. Within my logging DLL I perform additional work and hence it acts as a wrapper for log4net.
In my C# windows service project, in assemblyinfo.cs I added
Assembly: log4net.Config.XmlConfigurator(ConfigFile:="mywindowsservice.dll.config",... |
| 10/03/2008 2:44 AM | Replacing text in log messages |
| Replies: 2 |
Hello,I am trying to replace certain text strings in log messages, based ona regular expression. The goal is to prevent sensitive informationbeing logged.Is there any easy way of doing this?I have so far tried to write a simple implementation of theIObjectRenderer as a small end to end testnamespace Log4netRegexpRenderer{ public class RegexpObjectRenderer : IObjectR... |
| 10/03/2008 2:39 AM | Composite rollingStyle |
| Replies: 1 |
Hello,The Composite rollingStyle doesn't seem to work for the FileAppender as it does for the RollingFileAppender. That is, I have one TrittiSvcLog.xml file that keeps getting bigger and bigger but I have a current TrittiSvcLog.txt and a TrittiSvcLog.txt20081001 from yesterday. Also, is there a way to have the file be named TrittiSvcLog-20081001.txt instead?Thanks,Bill <appender name="File... |
| 10/03/2008 12:39 AM | custom fields? |
| Replies: 7 |
Hello,Is it possible to add custom fields to log4net. I'd like to be able to do something like this:log.InfoFormat("Custom1", "Custom2", "Custom3", "{0}","Message");and then have an appender look something like:<layout type="log4net.Layout.
PatternLayout"> <conversionPattern value="%custom1 %custom2 %custom3 %message%newline" /></layout>Thanks,Bill |
| 10/02/2008 5:27 AM | Chained loggers |
| Replies: 2 |
Hi,I'm trying to create a chained logger according to the following logic:if ( condition1 == true && condition2 == true ){ accept}How can this be specified in XML?Here is what I have tried:<appender name="SupportToolAppender" type="log4net.Appender.AdoNetAppender"> <filter type="... |
| 10/02/2008 3:34 AM | Configuration system enhancement |
| Replies: 1 |
Hi We are using log4net through out all our applications and are veryhappy with it. I would like to know however if you ever consideredenhancing the configuration system. I would be especially interested inbeing able to fully initialize log4net programmatically. All the sampleI have been able to find are always using an xml description but thereare parameters we need to pass to... |
| 09/30/2008 11:29 PM | Appender to run at a Schedule Time |
| Replies: 1 |
Hi,I need to run the smtp appender at a specified interval of time.Any ideas how I can do this to that the appender will run at specificintervals and send all the buffered messages.Any pointers will be helpful.Thanks in advance.Thanks,Hemant |
| 09/24/2008 4:03 AM | roll over does not happen when iis application pool recycle |
| Replies: 0 |
hi, guysthe hourly roll over is OK most of the time; only for one hour when the server's application pool recycle the expected roll over file never shows up.for example:mylog.20080901-00mylog.20080901-01mylog.20080901-02mylog.20080901-03 <- this one never shows up and iis recycle happens at 03:XXmylog.20080901-04...any idea?thanks,rao |
| 09/18/2008 9:50 PM | logger and app domains |
| Replies: 4 |
Hi,
I have an issue with a GUI app I'm running. I make calls across dll's as expected and my logging works fine. I have a richTextappender in place thats used by the GUI. As logging is done I see it in the richText box of my gui. We'll call this "normal" execution.
Now as part of our testing, I create an appDomain and make the method calls just as does the "normal" execution.&nbs... |
| 09/18/2008 6:47 PM | How to find where log4net is logging to at runtime |
| Replies: 1 |
Hi,I am using this code to load in an XML config file:FileInfo configFile = new FileInfo("C:\\Log4Net.Config");log4net.Config.XmlConfigurator.ConfigureAndWatch(configFile);How can I then find out where Log4Net is logging to so I can display thisinfo to my user and tell them to look in the log file at X?ThanksAmy--View this message in context: http://www.nabble.com/How-to-find-where-log4net-is-lo... |
| 09/17/2008 4:08 AM | RollingFileAppender generates unexpected filename and/or causes IIS to hang |
| Replies: 2 |
We are using rolling file appender in an IIS managed C# application. Our log4Net deployment is configured with the following options specified in basic.xml: <appendToFile value="false" /> <countDirection value="0" /> <maximumFileSize value="512KB" /> <maxSizeRollBackups value="100" /> <rollingStyle value="Once" /> <staticLogFileName value="false" />. The file ... |
| 09/16/2008 5:05 PM | Problems with NUnit and log4net |
| Replies: 0 |
Hi,We are using log4net in conjunction with NUnit and MSBuild.We are testing a cache implementation which requires the usage oflog4net and Common Logging (from the Spring Framework).When running unit tests, each invocation of a test case which causes alog entry to be created in turn causes log4net to blow up on the tracewith the following:log4net:ERROR [TraceAppender] Failed in DoAppendSystem.Th... |
| 09/16/2008 10:20 AM | closed connection errors with AdoNetAppender & MySQL Connector/NET |
| Replies: 0 |
Hi,Has anyone ever experienced frequent "closed connection" errors inlog4net while using the AdoNetAppender with MySQL Connector/NET in anASP.NET application (stack traces below)?I know this isn't strictly a log4net question, but I'm wondering ifanything about log4net might be contributing to the problem. The erroroften happens when the associated app pool is recycled, but it sometimeshapp... |
| 09/12/2008 7:05 PM | Getting RollingLogFileAppender to write to Windows LocalAppData directory |
| Replies: 1 |
HelloI configured the RollingLogFileAppender in my application .config filehoping that it would write my log file into the windows users local app datadirectory.What I did not realize is that ${LOCALAPPDATA} is a Vista only environmentalkey and it's failure to resolve on XP machines caused unexplainableperformance issues.Can another tell me if there is a recommended way to get theRollingLogFileA... |
| 09/12/2008 3:27 AM | Problems with RollingFileAppender while using it with AsyncAppender |
| Replies: 1 |
Hello,I am using an AsyncAppender with a RollingFileAppender. The problem I amhaving is that the rolling file appender will not roll to another file whenattached to the AsyncAppender. The rollingfileappender works fine byitself. Why does the RollingFileAppender not work with AsyncAppender? Anyclues’ to why....Dawn |
| 09/11/2008 8:27 PM | Same file read/write from Multiple process |
| Replies: 3 |
Hi All,I am considering to use Log4Net in a web service to write to a single logfile. I want to know whether writing to a single file in this manner throughLog4Net is safe. The current code I have implemented is in C# in which I amwriting to a single file which gives me error "The process cannot access thefile XXXXX because it is beign used by another process"To resolve the above pro... |
| 09/11/2008 12:44 AM | GAC vs. XmlHierarchyConfigurator Problem |
| Replies: 2 |
I've found a few posts on Google about this issue, but none seem to be the exact problem I'm having. When I started adding log4net to some of my projects, I just added a reference to the dll, which was then copied to the output directory.
I added this following code to my AssemblyInfo file, setup the app.config and everything worked like a champ.
<Assembly: log4net.Config.XmlConfigur... |
| 09/02/2008 7:03 PM | Additivity flag question |
| Replies: 1 |
Hello,I'd like to control the Additivity flag programmatically. I know that itcan be changed from the config file but want to change it within aprogram. The flag is a parameter of the Logger class but not on the ILoginterface. If possible, what's the preferred method of doing this?Thanks in advance,Mark |
| 09/02/2008 5:43 PM | Database logging problems |
| Replies: 2 |
Hi,
I've been playing with log4net and writing to file seems to work okay =20 but when I try logging to a database nothing happens...
To explain a little more... I'm running a trace on the database and I =20 can see that it's trying to commit a transaction but it's not =20 resulting in any writes. I was playing with this for hours yesterday, =20 turned on the machine this morni... |
| 09/01/2008 2:54 PM | Question about using log4net with chainsaw |
| Replies: 0 |
HiI'm using log4net and would like display log messages with apachechainsaw.For this reason I've added an UDPAppender. I got it to work but therestill exists a problem.All messages are displayed in chainsaw in the default table.Because I have a lot of instances of my App running, I want to show thelog messages of each instance in its own table in apache chainsaw.I read in the Tutorial that there... |
| 09/01/2008 7:48 AM | Visual Basic 2008 app.config errors... |
| Replies: 0 |
Hi everyone,I've a project in vb.net 2008 running, and i added log4net to it.It was an issue to sort out what to do to add logging to the project butnothing special that some google couldn't help sort out.The bigger issues where mainly what to add to app.config:<configuration> <configSections> <section name="log4net"type="log4net.Config.Log4NetConfiguration... |
| 08/29/2008 9:20 AM | Persisting configuration changes? |
| Replies: 0 |
I found an archived post (from 2006) in which Nicko states that log4Netdoes not provide any method of persisting dynamic configuration changes.Has anyone written any code to persist configuration changes that theywould be willing to share or at least talk about?Thanks----------------------------------------------------------------------------------Roy Chastain |
| 08/29/2008 4:07 AM | Whatever happened to asp.net pattern converters? |
| Replies: 2 |
Hello,
I’m very interested in using log4net as my companies standard logging utility. Since our focus is primarily on developing web applications using asp.net, I’m very interested in the AspNet*PatternConverter classes that Ron started to implement back in October 2006. Is there a new release of log4net that is coming out soon that will include them?
Or should I c... |
| 08/28/2008 5:05 AM | SmtpAppender - To addresses comma seperated, not semi-colon seperated... |
| Replies: 5 |
Am I nuts, or must multiple addresses in the To of the SmtpAppender be COMMA separated, not semicolon separated as the documentation says?
-Walden
--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@TechSoftInc.com
http://www.TechSoftInc.com
Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)
|
| 08/25/2008 1:05 PM | IsDebugEnabled = false |
| Replies: 3 |
Hi All,I am new to log4net. I would to integrate this dll into my application. So Ihave done the following steps:1. I have added log4net dll into my application.2. Then insert this code protected static readonly ILog objLog = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); pri... |
| 08/23/2008 8:01 AM | Multiple Layouts to the same appender |
| Replies: 1 |
I have an application that contains a subsystem with its own logginginfrastructure. I can hook into this logging system to intercept thelog messages, but the messages are already formatted. Rather than parseand decompose these messages, I simply used a PatternLayout to match thelayout of the subsystem.However, I also need to log from my own code to the same file. Thismeans I ne... |
| 08/20/2008 6:38 PM | domains and log4net |
| Replies: 0 |
Hi,
This is driving me CRAZY! :( I'm doing something I see others a trying to do (via google) however I simply cannot get it to work.
I have a GUI app that uses a rollingFileAppender (it also uses a RichTextBox appender but for the moment, I just want the file appender to work ok). Anyways, I create my Domain and point everything to the "previousVersion" directory where a... |
| 08/19/2008 3:17 AM | Can I limit the level for appender |
| Replies: 4 |
Hello, Can I limit the level for appender, for example if I want the errors to go to database and the debug calls to Debug Output. Is this possible? Thank you in advance Vlad |
| 08/14/2008 3:43 AM | Conigure log4net for .net dll |
| Replies: 4 |
HiI am developing a ClassLibrary in C#(VS2008).I have refernce to log4net.dll.This DLL has only one function which will log astring using log4net.My AssemblyInfo.cs has the following entry:[assembly: log4net.Config.XmlConfigurator()]I use this above dll in a WINForms application.The problem is log4net is not logging any information.Appreciate help.--View this message in context: http://www.nabble.... |
| 08/07/2008 7:20 PM | Logging from two dlls interop |
| Replies: 2 |
Hye.I wanted to trace my functions by logging some informations. So i developpedtwo dlls (.net interop) wich use log4net for logging.when i execute one of the dlls from asp page, logging is working fine. Butwhen i wanted to use both in the same page with "createObject("Dll1.object)and createObject("Dll2.object") i encounter problems.The problem is a little bitte weard, all functions with the sam... |
| 08/07/2008 4:12 PM | ASP.NET, AdoNetAppender and deferred property execution |
| Replies: 4 |
Hi Everyone,I am seeing a problem here which I believe is due to deferred property execution. I have a ClientLogger which gets a property value from the HttpSession as below. public class ClientLogger { public override string ToString() { string retval = "-"; &nb... |
| 08/07/2008 3:03 AM | Adding properties to a logging event |
| Replies: 1 |
I'm trying to add properties to a logging event so that the adoAppender can=pick up these properties and use them in the insert SQL statement.
I've followed the example of creating a loggingEvent, but for the life of me, I can't figure out what the callStackBoundaryDeclaringType would be. Can someone help me figure out what the first parameter is to pass to the LoggingEvent constructor?
Also, ... |
| 08/06/2008 2:43 AM | log text wrap |
| Replies: 2 |
Is there a way to wrap the text in my log. I can't find anything in theappender yet.Mackenzie FunaiDeveloper - Supporting TechnologiesComputer Sciences Corporation8616 Freeport Parkway St. 2BIrving, TX 75063469-499-8521Computer Sciences CorporationRegistered Office: 3170 Fairview Park Drive, Falls Church, Virginia 22042,USARegistered in Nevada, USA No: C-489-59-----------------------------... |
| 07/30/2008 10:11 PM | Excluding stack trace from Layout |
| Replies: 4 |
Hi,I have tried to search for an answer here and tried to understand thedocumentation but can't say I have been successful.I'm using this configuration value for the layout pattern:<layout type="log4net.Layout.PatternLayout"><conversionPattern value="%date %newline [%thread] %newline %-5level :%message %newline" /></layout>This is too much information. I don't want the stac... |
| 07/30/2008 11:37 AM | NUnit + Log4Net Config Error |
| Replies: 0 |
When I compile my website using Visual Web Developer, it builds with noproblems. I created the DLL using the aspnet_compiler on the command lineand send that to NUnit. When I try to run my unit tests, I keep getting thiserror:log4net:ERROR XmlConfigurator: Failed to find configuration section'log4net' in the application's .config file. Check your .config file for the<log4net> and <configS... |
| 07/30/2008 3:22 AM | more loggers vs. more appenders |
| Replies: 0 |
Hi,I need to output to distinct files the events of distinct classes in my application. I have two options:Configure a logger (with only one appender inside and with the additivity set to false) for each class.Leave a unique logger (the root logger) and add one appender to this logger for each class, then use a LoggerMatchFilter (in the appenders) to drop the logging event if the class is not the ... |
| 07/30/2008 2:58 AM | Change the logging directory at runtime |
| Replies: 4 |
Hi,I'm planning to use log4net to write events in a removable usb memory.As you can suppose I have problems setting the right path for the logging file in the removable drive, there is no warranty about the drive where the memory will be mounted each time; and the application, depending on its state, it can be using different removable memories at different times.I wonder if there is any way of se... |
| 07/29/2008 5:20 PM | Change the name of the log file |
| Replies: 0 |
Hi, My version of log4net is quite old (1.1...), and i cannot change it.I would like ton change the name of the file before using it if necessary. More precisely, i would like to change the name of the log file before calling "GetLogger".How can I? Perhaps i can use the function "SetFile", but i cannot reach it on my code. Thanks, Best Regards, Nicolas
Tous vos amis dis... |
| 07/24/2008 8:04 PM | Writing large Strings (> 4000Byte) to Oracle database |
| Replies: 0 |
How can I write large text strings (larger then 4000Byte) to alog4net.Appender.AdoNetAppender.Up to 4000Byte it works fine with the dbType:String. But how can I writelarger Strings.(Mostly used for writing stack trace to a database)Can I do it over a CLOB?<appender name="AdoNetAppender_BusinessLogic"type="log4net.Appender.AdoNetAppender"> ... <connectionType value="CoreLab.O... |
| 07/23/2008 8:06 PM | FW: AdoNetAppender: can not read custom properties from LoggingEvent using configuration file |
| Replies: 0 |
I used a extended log using example:
http://svn.apache.org/viewvc/logging/log4net/trunk/extensions/net/1.0/log4ne
t.Ext.EventID/cs/src/EventIDLogImpl.cs?view=co .
I have properties InstanceId that is setted in extended log:
LoggingEvent loggingEvent = new
... |
| 07/20/2008 12:55 PM | how to configure a "deny stringmatch filter" |
| Replies: 2 |
the following filter: <filter type="log4net.Filter.StringMatchFilter"> <stringToMatch value="database" /></filter> Look for the substring 'database' in the message text of the event, in the case that text is found the filter is ACCEPTED and the message is logged. OK I want to configure a filter that DENY the substring 'database' (don't log th... |
| 07/18/2008 10:18 PM | RollingFileAppender not working |
| Replies: 2 |
Hi All
We have an app that uses log4net 1.2.0.22663. Its deployed on Win2K3 server, running on IIS 6.0. My log4net config look like,
<log4net debug="false"> <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender,log4net"> <param name="File" value="..\\..\\settings\\logs\\WindowsCWSLog.txt"/> <... |
| 07/17/2008 8:11 PM | XML configuration, windows service |
| Replies: 2 |
Hi all,I'm using[assembly: log4net.Config.XmlConfigurator(ConfigFileExtension = "conflog", Watch = true)]in AssemblyInfo.csAlmost everything works fine.When I started service without config file there is no problem, simply service does not generate log.Then I add config file into service directory, again everything works fine, it starts logging.If I change config file then the configuration chan... |
| 07/11/2008 1:05 AM | AdoNetAppender.ActivateOptions not using correct connection string? |
| Replies: 0 |
I am using an adonetappender. THe appender is defined an a separateconfig file, and I use assembly attributes to load it.In my code, early on, I get the appender and set its connection string.But when I call ActivateOptions, I get an error - it seems theappender is trying to use the old, dummy, connection string that Idefined in the config file. This is not what it should do.An... |
| 07/02/2008 7:40 AM | Must declare a logger in the exe? |
| Replies: 1 |
I have a dll that I recently put log4net logging into. It is calledby many different executables. So I wanted to find out what is theminimum I must do so that an exe will cause the logging to happen inthe dll.Add reference to log4netAdd [assembly:log4net.Config.XmlConfigurator(ConfigFile="log4net.config",Watch=true)] to the exe's assemblyInfo.csThat should be it, right? W... |
| 07/02/2008 12:20 AM | EventLog Appender on Win2k3 with ASP.net |
| Replies: 0 |
I haven’t seen this addressed, so here’s my problem and solution for anyone that may be interested.
I developed an app on XP and all my logs would make it into the EventLog without any issues. I was using a new Eventlog “mylog” and the application name is “myapp”. I knew that I had to create the log and source because asp.net didn’t have rights to create the new log.
... |
| 06/28/2008 6:49 AM | Message encoding |
| Replies: 0 |
Hi everyone,I have a remoting appender in place, but it looks like the encoding of the message isn't unicode or at least it doesn't support the equivalent of (char)172 because that special characters gets all weird on the server side. Is there anyway to set which encoding the logger/appender are using, specially in the case of remoting.Thanks,Yann |
| 06/28/2008 6:33 AM | Default PatternLayout date format is not ISO8601 |
| Replies: 0 |
I could find no FAQ on this so I am reporting this here. Everyone repeats that %date{ISO8601} will produce ISO8601 format for dates. Beyond that, the documentation says that the default form of the %date in PatternLayout is ISO8601.
This appears to be wrong based on the statement of the ISO8601 standard at http://www.w3.org/TR/NOTE-datetime.
An example should... |
| 06/28/2008 6:03 AM | Parsing a log generated by a RollingFileAppender with LINQ to XML |
| Replies: 0 |
Hello,
This post is not directly related to log4net. However, I have a parsing issue with one of the generated log file.
I'm currently trying to parse (with LINQ to XML) a log file generated by a RollingFileAppender.It has the format as shown at the end of this post (XML fragment, undeclared namespace).I tried to load it using the XElement.Load() method. However, it throws an exception tellin... |
| 06/28/2008 4:42 AM | Specifying log level at runtime |
| Replies: 3 |
This may be obvious, but I've missed it. (And I did try searching the mailing list archives too.)
Is there any simple way to specify the level of a logging in a C# program at runtime? The logger exposes methods log.Debug, log.Error, etc., but if I have the level passed into a function as a log4net.Core.Level value, is there any way other than using a switch statement and 5 log.xxx statements to ... |
| 06/25/2008 5:01 AM | Web and remoting |
| Replies: 0 |
Hey guys,
Anyone of you would know a good resource to setup log4net logger on a web farm and using the remoting appender to log into files on a different server?
Thanks,
yann
|
| 06/24/2008 3:13 PM | rich text box and scroll |
| Replies: 2 |
Hi Hi,
Whats the simplest way to make the content of the rich text box “selectable”. We have an awful lot of log output going to that window, all of which is needed. Ideally I’d like to freeze the window, select the text and have the RTPappender continue its writing. By default I’d temporarily set the RTB enabled == false, select the text and then set it back to true but that seems a bi... |
| 06/21/2008 5:49 PM | Log4Net failed in .net 3.5 Framework |
| Replies: 3 |
Hello,I had jus migrated my VS2003 project to VS2008 Evaluation version. I foundout that my log4net is giving me an error in which previously it didn'tcomplain.Function I called is LogManager.GetLogger(name)It gives me "TypeInitializationException was unhandled" error, with theinner exception as "The type initializer for 'log4net.helpers.LogLog' threwan exception". Go in further it mention about... |
| 06/19/2008 3:44 AM | testing log4net |
| Replies: 1 |
Hi everyone,
I’m currently testing log4net and I can’t seem to be able to make the remoting part work properly. I am using the example remoting server app that’s provided with the log4net download and I implemented the remoting client part, mostly extracted from the remoting client example, in our project. All that running locally.
Our project is an ASP.Net web application and... |
| 06/18/2008 4:14 PM | Winforms |
| Replies: 6 |
Hi,
Could anybody tell me where is the best starting point to integrate log4net into a winforms application ? I intend to have a UPD appender configured and have my log information displayed in a textbox. Is a textbox the best control to go with? How do I attach my log output to the control I ultimately decide upon?
Thanks for any info/replies. Have a nice day
&n... |
| 06/17/2008 11:40 PM | Retry to lock log files |
| Replies: 0 |
Hello,I am using log4Net for my application.Everything is fine, except during the night where my server restart the IIS Worker process.And sometimes, the day after I don=92t have log!!A guy from Microsoft told me that during the IIS operation on the Worker Process, the old process (which locks the log file) is killed after the creation of the new process.So the new process doesn=92t have the... |
| 06/14/2008 3:41 AM | filtering on methods |
| Replies: 3 |
This might seem like I'm a little log4net-challenged (and that may well be), but after spending some time with the message archives and Google, I could not figure this one out. So, I turn to you lot for a hand.Is there a quick and simple way to filter messages based on the method, class, or namespace?I'm thinking of a situation where you have class A using class B in a has-a relationship, wh... |
| 06/05/2008 6:51 PM | log4view equivalent |
| Replies: 4 |
Hi,
I'm in awe of log4net, nice one! :) One of the reasons I digg this utility is because I discovered yesterday that we can monitor logging remotely via UDP. I configured a UDP appender for our app and I'm watching production for one of the users on my machine. Neat.
Right now I'm running with an evaluation version of log4view. I like the colour (ah the simple things in l... |
| 06/05/2008 1:13 AM | Question about RollingLogFileAppender |
| Replies: 1 |
Currently I have RollingLogFileAppender configured to hold a max of 20 files PER HOUR as follows: <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="c:\logs\MyService.log" /> <appendToFile value="true" /> <rollingStyle val... |
| 06/04/2008 9:54 PM | Multiple Loggers Stepping on Toes |
| Replies: 2 |
I'm working with a 3rd party component that is using Log4net. Their loggeris configured programatically.My homegrown components use Log4Net as well and are configured using aseperate XML file. As soon as I access a certain line of code in the 3rdparty component, my logger gets its Debug and Info logging disabled.I'm confused how this is happening. I'm getting a log by totally d... |
| 06/04/2008 7:59 PM | Distinguishing logging events from multiple objects of the same type |
| Replies: 0 |
Hello,
In my application I have multiple objects of say class Foo. Each has a unique identifier. They run under a single thread (i.e. All logging events have the same thread ID). How can I distinguish logging events from these objects and the other objects called by them? i.e. If the bar() method is called on Foo 1 which in turn calls t() on a Car object, I want... |
| 05/30/2008 8:11 PM | Filter NHibernate logging |
| Replies: 1 |
Hello
Is it possible to filter out the NHibernate logs from my application logs via the XML config file.
The logging is working great but I am finding that the inclusion of the NHibernate logs is way to verbose for my needs and that the information I am really interested in is being ‘lost’ (or rather harder to find) in the amount of information being logged.
If anyone ... |
| 05/30/2008 5:58 AM | root level logger using other logger level |
| Replies: 2 |
We have multiple loggers set up for various services that make up our system. I think I have the service configured to log ERRORs (and FATAL) to one file for all code, then qualified a couple separate thread based services to log debug type information to other files. Instead I see DigitalBridgeTrafficControl INFO message in trafficControl.log, where I thought should ONLY see ERROR and... |
| 05/23/2008 1:27 PM | bypassing the IsEnabledFor check |
| Replies: 0 |
Hi, I've got a question.I'm currently wrapping the LogManager class and the resulting ILog togain some custom behavior.I would like to be able to flag certain logging events as "important" byproviding overloads of the Debug/Info/etc methods. The important eventswould then get logged -- regardless of the configured level of thelogger. Do you have any advice on how to do this? Th... |
| 05/20/2008 4:53 AM | How to log from multiple projects using log4net? |
| Replies: 1 |
Hello,I'm just starting with log4net and want to know how to log to the same logfrom several projects in a solution.The way i use it in a single project is very easy. Just create a configfile, create ILog object and log away, but i have no idea how that wholething works when i have many projects that need to log to the same file.Another question is can i make the projects share log4net singlecon... |
| 05/19/2008 7:23 PM | how to log to differnent textfiles? |
| Replies: 9 |
Hello!I'm quite new in using log4net. :-)And perhaps you have a quick and easy solution for my problem.I have an windows application which can be started more than once.Inside the config file I can set the logfile and path.But when I start my application more than once, I receive a "file inuse" exception.Is it possible to set the logfile path at runtime?Thank you for your help.best regards,Mad |
| 05/16/2008 11:18 PM | Configuration of Log4net with Visual Studio 2008 unit testing |
| Replies: 1 |
Does anyone know how to use log4net.config files with Visual Studio 2008 unit testing?
I have a test project with a log4net.config file as part of the project, properties set to Content and Copy always, which diligently copies the config file to the bin\release or bin\debug folders on build. In the test class the [ClassInitialize] method includes this line:
log4net.Config.XmlCo... |
| 05/16/2008 10:10 PM | Log4net viewer Log4View 2.2.0.6 released |
| Replies: 1 |
I am glad to announce that Log4View 2.2.0.6 has been released.
Log4View is a powerful and comfortable viewer for Log4net output.
Key Features:
* Reads output of RollingFileAppenders, UdpAppenders and a special TcpAppender(!)
* Can easily filters huge log files to focus on the current point of interest
* Multiple open logs
* Dynamically growing logger tree shows all known loggers
* Typ... |
| 05/16/2008 12:34 AM | log4net stops logging for apparently no reason |
| Replies: 3 |
Hi,I was very happy with log4net. Kudos to the developers. However, oneday, it inexplicably and silently stopped logging. We are using log4netfor our internal SharePoint applications, in case this makes any difference.Here are the relevant parts of my web. config (this has changed a bitsince I've been mucking about with it):<configuration> <configSections> &nbs... |
| 05/14/2008 12:51 AM | Cannot log using Log4Net in a web app |
| Replies: 2 |
I have a web application written using .NET framework 2.0 and VB.net. I amusing log4net to log errors. So far I havent been successful in doing soI have added log4net references to my application, modified the web.config(I have even tried writing a new config file but didnt help) with therelevant code and added code in the code behind for logging but this doesntwork. Do I have to write ext... |
| 05/13/2008 3:57 PM | Combining log4j and log4net |
| Replies: 1 |
Hi,
We have an application set consisting of both java and .net applications.
Is it possible to have separate log4j and log4net instrumented applications simultaniously writing to the same text log file or to the ip port ?
/Geir ************************************************************** The contents of this e-mail message and any attachments are confidential and are intended solely for t... |
| 05/12/2008 11:26 PM | Problem getting Log4net to work |
| Replies: 7 |
Can anybody spot what I am doing wrong? I'm probably doing something stupid, but I've been banging my head against this for a few days and am getting no further:I have a solution comprising two projects, a client app and a logger project. The logger project encapsulates calls to log4net. It has a line in its AssemblyInfo file [assembly: log4net.Config.XmlC... |
| 05/09/2008 8:49 AM | logging additional message-specific data with AdoNetAppender |
| Replies: 5 |
Hi, we've been using log4net for a few months now, and I've been on this list for about the same. I have a design question.What would be the "correct" way to do the following?We'd like to log to a database using the AdoNetAppender. From our code, when we call things like log.Debug, log.Info, log.Warn, etc. we'd like to be able to pass not just a "message" but also things like a local... |
| 05/08/2008 12:31 AM | Forcing a rollover |
| Replies: 0 |
I would like to force a rollover action on a RolloverFileAppender but I cannot see an API to do this. I want to do this at the point I archive the log file (so I don’t kill the file-in-use). So how does one force a rollover?
Eric Chamberlain
Software Engineer
|
| 05/06/2008 12:51 AM | FW: Date Pattern question on RollingFileAppender |
| Replies: 0 |
What is the correct syntax for the datePattern to keep the .log extension on the rolled over files, such as
Mylog.log
Mylog.2008-02.log
Mylog.2008-03.log
Mylog.2008-04.log
I don't want the date of the file to be the last extension. I have tried the following but get an error:
System.NotSupportedException: The given path's format is not supported. at System.Security.Util.... |
| 05/05/2008 3:31 PM | log4net configuration withtou Xml file |
| Replies: 9 |
Hello Everyone,
I need to be able to configure log4net without the XmlConfigurator, that is directly from my code.
I am aware of the BasicConfigurator but one appender is not enough for me.
I would like to be able to create some new appenders, remove (or disable) them and change their
log threshold at r... |
| 05/03/2008 5:00 AM | Throttling/Rollup feature in EventLogAppender |
| Replies: 3 |
Is there a Throttling feature available or planned in EventLogAppender.
If we log to event log a message that could potentially be logged at frequency of one per incoming request to my web application, it could flood the event log with millions of messages if/when things go wrong. If there was a = way to roll them up every x seconds into a single event log message (with a count of how man... |
| 04/30/2008 9:05 PM | SmtpAppender not working on 3rd party hosting provider |
| Replies: 7 |
I'm trying to figure out a situation where the SmtpAppender in my ASP.NET3.5 application works properly on my development machine, but not on GoDaddyshared hosting.This might be easier, except that I can't see the output whenlog4net.Internal.Debug = true at GoDaddy, because we have no access to, andcannot add a listener for the System.Diagnostics output.Some points:- This works on my development... |
| 04/28/2008 11:52 PM | log4net Memory Leak |
| Replies: 2 |
We are currently experiencing a reproducible memory leak in a C# .NET Web Service. When we analyze the memory using WinDBG, are are able to find loads and loads of strings containing the information that we are logging in our Web Service. So each time we write to the log, that string is stuck in the memory for our aspnet_wp process. We have verified this by dumping the actual string objects and fi... |
| 04/26/2008 3:42 AM | Appending log entries to Visual Studio Team Edition unit test results. |
| Replies: 1 |
I'm trying append my log entries to the test results from a unit test inVSTS. Generally, anytime you call Console.WriteLine from within your unittest, the results are written to the console. So, I figured if you use theappender I have below, the log results would show up there as well. I'mguessing the streams are redirected somehow...and I'm not sure how to remedythat. Has anyone tried to do thi... |
| 04/25/2008 12:12 AM | Rich text box appender |
| Replies: 0 |
I've often had a need for an appender that would write to a Windows Forms text box. I suppose the reason that none is included in log4net is the required reference to System.Windows.Forms that is not shared by every .NET implementation.
I found several text box appenders for older versions of log4net lying about the web. I've taken ideas from them, updated bits of them and wrote an appe... |
| 04/23/2008 8:48 PM | Moving log4net config out of App.config |
| Replies: 2 |
I need to move log4net configuration from app.config file and i have tryedthe following :app.config file :<?xml version="1.0" encoding="utf-8" ?><configuration> <appSettings> <add key="Log4NetConfiguration" value="log4net.config" /> </appSettings></configuration>log4net.config file:<log4net> &nbs... |
| 04/23/2008 3:06 PM | How to print a tabulator without %tabulator ? |
| Replies: 3 |
Hello,there is a very simple thing i dont know how to do: tabulator in conversionPattern value.There is a %newline, but no %tabulator. Is it possible to get the tabulator someway?Thank you,Alexander
Connect to the next generation of MSN Messenger Get it now! |
| 04/22/2008 11:01 PM | Log4Net and Vista logo certification |
| Replies: 1 |
Hello !We are going to submit some of our products to the Vista Logo program.These products are using log4net for logging stuff. A test case in the vista logo certification specifies that all delivered dlls must be signed.The version of log4net we have is not currently signed. Is there a way to get a signed dll of your logging solution ?Thank you very much******************************************... |
| 04/22/2008 5:32 PM | Counting number of Errors or Emails sent |
| Replies: 2 |
Hi there,I got a task that SHOULD be quite easy but I did not find any solution yet.Maybe the reason is that google finds a lot of stuff when searching forcount... (impossible to get a non-sql-related site :-D)But to my problem:log4net works fine, sending emails when an Error occurs. But sometimes ithappens that because of a major bug thousands of Mails are sent because ofthousands of error mess... |
| 04/17/2008 11:57 PM | Problem with File name in RollingFileAppender |
| Replies: 0 |
Hi everyone,
I’m newbie in Log4Net. I have studied Log4Net in few days and I have a problem with it.
I’m working on multi-portal framework, which store many sites. Each site has an ID (SiteId), I want logging each site in a folder named = ID of this site. For example, ManageUser.log for Site with siteid=123 will be stored in folder Portal_Logs\123.
|- Potal_Logs\
|---\123 for si... |
| 04/17/2008 2:26 PM | log4net.Layout.XmlLayout : bad format |
| Replies: 3 |
Hi !
I use log4net.
<log4net debug="false">
<appender name="LogFileAppenderErreurs" type="log4net.Appender.RollingFileAppender">
<file value="GestionErreurs\Logs\Erreurs" />
<appendToFile value="true" />
<rollingStyle value="Date" />
&n... |
| 04/13/2008 1:17 AM | Faster %date{yyyy-MM-dd hh:mm:ss tt} pattern converter |
| Replies: 1 |
This is a faster pattern converter for the "yyyy-MM-dd hh:mm:ss tt" pattern. I use this primarily with my NHibernate logger in DEBUG mode because I want to see what NHibernate is doing but I don't necessarily care about timings down to the millisecond when its writing out its generated sql and building objects. When I use this pattern converter my app doesn't feel slow when NHibenrate DEBUG logg... |
| 04/10/2008 9:26 PM | Problems with log4net Rolling File Appender |
| Replies: 4 |
Hello! We use log4net in a linux environment (OpenSuSE 10.2) with Mono. We utilize a RollingFileAppender which appearantly puts 3 or so Bytes (Hex Values: EF BB BF) in Front of each file. These characters interfere with our Software processing these logfiles. Under .NET we don't have this problem. Question now is if this is a known Problem which has a fix or if we have to modify our processing sof... |
| 04/02/2008 10:10 PM | SmtpAppender To: addresses ... |
| Replies: 0 |
Log4net Users,
I am using the SmtpAppender. The documentation explains that the <to> field can contain a list of e-mail addresses separated by semi-colons. However, doing so, raises an exception in log4net:
<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
<to value="xxx@yyy.com;aaa@bbb.net" />
&nb... |
| 03/27/2008 10:47 PM | System.Reflection.MethodBase.GetCurrentMethod ()' threw an exception of type 'System.ArSystem.Reflection.MethodBase |
| Replies: 1 |
I am trying to use log4net in next manner :LogException(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.ToString(),ex)and i am getting System.Reflection.MethodBase.GetCurrentMethod ()' threw anexception of type 'System.ArSystem.Reflection.MethodBase somebody help me .--View this message in context: http://www.nabble.com/System.Reflection.MethodBase.GetCurrentMethod-%28%29%27-threw-... |
| 03/25/2008 9:41 PM | Logging framework for classic ASP |
| Replies: 1 |
Hi,
Now that we are talking about logging frameworks for .NET, do we have a recognised way of logging in classic ASP? I have an application written in classic ASP without any logging and I would like to implement it afresh. Would be great if you can share your thoughts on how to do this.
Thanks
Srini |
| 03/25/2008 4:34 PM | DeliveryMethod in log4net |
| Replies: 1 |
Hello, can I config the DeliveryMethod property of SmtpClient object that sends mail in smtpAppender?? tnx |
| 03/19/2008 3:34 PM | routnig logs files to cpecific folder |
| Replies: 1 |
I want the log4net write logs files to cpecific folder ,not to currentapplication folder--View this message in context: http://www.nabble.com/routnig-logs-files-to-cpecific-folder-tp16140319p16140319.htmlSent from the Log4net - Users mailing list archive at Nabble.com. |
| 03/19/2008 3:10 PM | Preventing log4net bee recognize as spam |
| Replies: 0 |
Hello everyone i have some client application and i want to use log4net withws or pop3 appender the problem is that if my application will send logsfrom client machine it will be recognize as spam.So what should i do inorder to resolve this problem--View this message in context: http://www.nabble.com/Preventing-log4net-bee-recognize-as-spam-tp16139714p16139714.htmlSent from the Log4net - Users m... |
| 03/19/2008 7:53 AM | Log4Net stopping |
| Replies: 18 |
We are using log4net to do logging in a .Net 2.0 application. We have used it successfully for about 6 months. Then today, we discovered that sometimes it just stops working. It still goes through the statements to write to the log, but it doesn’t actually write anything anywhere. The users have to close our application and re-open it to start the logging off again.
The action that hap... |
| 03/15/2008 8:39 AM | ASP.NET 2.0 C# - Logging issues with multi layer app. |
| Replies: 2 |
Hello all,Hope this is an easy stuff to solve due to a newbies misconfig step orsomething.lemme introduce better my problemi'm developing a 2-tier app.tier 1 : Web Sitetier 2: Data Access Layeri have the log4net config part on the web.config it self.here it is :================================================================================<configuration>...<configSections> ... |
| 03/14/2008 3:09 AM | Is there a log reloaded event? |
| Replies: 1 |
We have converted some of our legacy unmanaged code to use log4net through wrapper classes. For efficiency, we cache the various IsEnabled properties that our unmanaged code uses. Because it is cached, we need to know when XmlConfigurator reloads a changed configuration file so that we can clear our cache.I have searched the SDK docs, but I couldn't find any events that I could subscribe t... |
| 03/13/2008 5:17 AM | Log4Net and Powershell |
| Replies: 2 |
I was wondering if there are any users out there using Log4Net with Powershell successfully?
If so ,I’d be interested in seeing your sample code.
Thanks |
| 03/13/2008 12:09 AM | logging from web service and a web page |
| Replies: 2 |
I have had a web service logging for a while now and it works great (I’ll call it ws). The log4net.dll runs in the standard aspnet_wp.exe and logs using the rollingfileappender with minimal lock.
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
I’ve recently... |
| 03/10/2008 9:05 AM | Usage guide for Vista? |
| Replies: 5 |
I can't seem to write a log file anywhere on Vista. Is there any guide forusing log4net on vista?I thought this setting in log4net.config was going to save me, but itdoesn't seem to write a file.<file value="${ALLUSERSPROFILE}\Application Data\MyStuff\logs\MyLog.log" />--View this message in context: http://www.nabble.com/Usage-guide-for-Vista--tp15949615p15949615.htmlSent from the Log4net... |
| 03/07/2008 11:44 PM | Reusable layouts ... |
| Replies: 1 |
Is there a way in a log4net configuration file to specify a layout pattern and then reference that pattern from multiple appenders. In the following config file snippet, the same layout specification is used by two different appenders. Is there a way to specify the pattern just once and reference that patter by each of the two appenders?
Thanks,
Ken Parrish
Gomez, ... |
| 03/04/2008 11:20 AM | rollingfileappender - repetition of file name suffix |
| Replies: 1 |
Hi,I've searched around the documentation and on the web but couldn't findreference to this behavior (though the recent thread called "log4net andIIS problems" seems indirectly related.)I'm using a RollingFileAppender with a MinimalLock and simple datepattern for the file name. When I deploy my application, I get severalfiles of the following form in my log directory (at bottom is theconfi... |
| 03/03/2008 4:56 PM | SQL Appender and date time format |
| Replies: 2 |
Hi, I'm trying to use the SQL Appender with the RC version. I configured access to my log table as advised and I have no SQL Connection errors. I also have more then 300 entries in my log table created in the last hour. The problem is that no entries are displayed in the Summary section. I did a trace and found the following script being executed (just an excerpt): ............. In... |
| 03/01/2008 3:11 AM | log4net now included in Fedora 8 onwards |
| Replies: 0 |
Hi Folks,Just a quick word to say that I've packaged log4net for the Fedoraproject and it is now available in Fedora 8 onwards (Fedora 7 monokeeps segfaulting and is approaching EOL so will probably miss thisout)Regards--Christopher Brownhttp://www.chruz.com |
| 02/29/2008 12:33 PM | Logging issues |
| Replies: 0 |
Hi, I am using RollingFileAppender and LeveMatchFilter (filters) to log different types of logs into different files. I am able to log Info log into info_<date>.log file, debug log into debug_<date>.log file and error into error_<date>.log But due to the default LockingModelBase (as exclusive lock) of RollingFileAppender, I'm getting the error: log4net: ERROR [Rolli... |
| 02/28/2008 1:02 AM | Re: AW: WMI-Appender question |
| Replies: 2 |
Can you post a non-log4net snippet showing how you're posting messages to WMI in non-admin mode? If you can do it outside of log4net, it should be possible to convert the code to work within log4net. If you can't get it to work outside of log4net, then you'll need to solve that issue first. |
| 02/27/2008 11:49 PM | Proprieraty Layout Problem |
| Replies: 5 |
Hi!I have one question again :D!In my project (for Compact .NET Framework), we need implement a specified layout to logger. First, we included the log4net library in project and we extended the Xml like below:using System;using System.Collections.Generic;using System.Text;using log4net;using log4net.Util;using log4net.Core;namespace MyProject.Log{ public class MyXMLLayout : log4n... |
| 02/26/2008 8:14 PM | log4net and IIS problems |
| Replies: 16 |
Hi
I am using log4net on my asp.net web page hosted at an IIS server. This seems to work just fine until I do some changes in the source. Since asp.net runs as a shadow copy, changes will be compiled on the next request after the change was made. I guess this causes the log manager to duplicate itself, and the second one will not have write access to the log files. Since the old app dom... |
| 02/25/2008 9:27 AM | Possible thread sync issue in XmlLayoutBase:Format() |
| Replies: 0 |
Hi Everyone,I ran across a problem with XmlLayoutSchemaLog4j today...I was getting a NullReferenceException in TextWriterAdapter::Write() after logging several events from asynchronous socket IO (multiple threads).The exception failed occured because the internal m_writer of TextWriterAdapter was null. The only place I could see m_writer being set to null prior to the m_protectCloseTextWriter was ... |
| 02/23/2008 12:36 AM | Problem CF + RollingFileAppender + Flush |
| Replies: 6 |
Hi!We are developing an application for compact .NET framework 2.0. We need log events and view and real time. We configured the app.config file like presented below:<?xml version="1.0" encoding="utf-8" ?><configuration> <log4net> <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> <file ... |
| 02/21/2008 5:30 PM | Logging into multiple log files |
| Replies: 3 |
Hi, I have requirement, where-in I have to log different types of logs into different files.Eg:
Info logs should go into AppInfo.log
Debug logs should go into AppDebug.log
Error logs should go into ErrDebug.logI am able to log into all these files. But the issue is all the types of logs are present in all the log files.AppInfo.log is having info, debug and error logs. But I want only ... |
| 02/21/2008 1:47 PM | SmtpAppender subject |
| Replies: 1 |
Hi
I have a question about the SmtpAppender class. I want to have a dynamic subject. It should contain the log level, and the first line of the message.
For example:
log.Error(“My error message”) gives a subject like: “ERROR My error message”
log.Fatal(“My fatal message\nHello world”) gives a subject like: “FATAL My fatal message”
Is this possible?
B... |
| 02/21/2008 5:06 AM | Properties at the Logger level. |
| Replies: 0 |
Is it possible to have properties associated at the logger level. I noticed they are available in the repository but not implemented in LoggingEvent.CreateCompositeProperties().
Basically, I have a windows service that has several listening sockets (implemented with asynchronous callbacks). I would like to track and log session activity on the server for each of these listening sockets with log4n... |
| 02/20/2008 10:06 PM | Formatting the Logged Exceptions |
| Replies: 0 |
Hello,i have 1 specific Exception Type where i am not happy on how this Exceptionis logged.It logs Message + StackTrace - but i want to give some AdditionalInformation.I found log4net.ObjectRenderer.IObjectRenderer for rendering objects,in this case i want to define how Exceptions are rendered.--View this message in context: http://www.nabble.com/Formatting-the-Logged-Exceptions-tp15590450... |
| 02/20/2008 8:01 PM | log4net .NET 1.1 problem |
| Replies: 2 |
Hi,
I am trying to deploy an application that uses log4net.dll version 1.2.0.22663. The .NET FW that I use is 1.1 and running against IIS 6.0 on Windows 2003.
The trouble is there is no log file being created when I run the application against 1.1. However, if I switch the application to use 2.0, everything is fine. Due to circumstances, I cannot switch my app to 2.0 on production.
I would ... |
| 02/19/2008 3:21 PM | WMI-Appender question |
| Replies: 3 |
I am experimenting with the WMI Appender and I found it to be just whatI want. The only issue that needs to be resolved, is how to fire eventswhen the application doesn't run as admin. Any solutions?thanks,andreas |
| 02/19/2008 12:21 AM | Logging with Oracle client for .net |
| Replies: 2 |
Hi,
I’m trying to log with the Oracle Data provider for .net framework, v9.2
I followed the tutorial here : http://logging.apache.org/log4net/release/config-examples.html (Oracle 9i)
My connection type is :
<connectionType value="Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess, Version=9.2.0.401, Culture=neutral, PublicKeyToken=89b483f429c47342" />
... |
| 02/18/2008 11:57 PM | Using log4net.Util.PatternString in a PatternLayout |
| Replies: 5 |
I have the following layout defined for a RollingFileAppender (log4Net1.2.10)<layout type="log4net.Layout.PatternLayout"> <param name="Header" type="log4net.Util.PatternString"value="%newline**** Trace Opened Local: %date{yyyy-MM-ddHH:mm:ss.fff} UTC: %utcdate{yyyy-MM-dd HH:mm:ss.fff} ****%newline"/> <param name="Foote... |
| 02/18/2008 9:49 PM | Problem with maxSizeRollBackups |
| Replies: 3 |
Hi,
I have a problem with maxSizeRollBackups or maximumFileSize, because i try create two o more log file when your's size is more than 5 KB, but this is not possible.
¿Are you have the same problem?
I use framework 1.1.4322, Vstudio 2003 ASP.NET and log4net 1.2.10
And my log4net configuration is:
<appender name="RollingFile" type="log4net.Appender.Ro... |
| 02/18/2008 5:56 PM | Could not find schema information for the element 'log4net'. |
| Replies: 0 |
Hi,I'm using Visual studio 2008, targetting .Net Framework 2.0, a C# consoleapplication.I tried to configure Log4net in the app.config file, but I got this messagefro mVS 2008 :Could not find schema information for the element 'log4net'.and the logging does not work.I used this solutionhttp://www.verysimple.com/blog/2007/02/07/could-not-find-schema-information-for-the-element-log4net/but sti... |
| 02/18/2008 5:45 PM | RollingLogFileAppender |
| Replies: 4 |
Hi all,Quick question. I am using a RollingLogFileAppender on a webservice. Logging works 100%, but whenever I try to open the log file for reading in another process I get a sharing violation on the log file. I open the file with:FileStream file = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);Would I have to enable MinimalLock, or is there a way to use ExclusiveLock and... |
| 02/18/2008 1:04 PM | To insert message into "Authlog" using RemoteSyslogAppender |
| Replies: 1 |
Hi Friends,I have noted that log4net is not supporting to insert message into "Authlog"facility. Following are the facilities those are supported by log4net. Kernel,User,Mail,Daemons,Authorization,Syslog,Printer,News,Uucp,Clock,Authorization2 Ftp,Ntp,Audit,Alert,Clock2,Local0,Local1,Local2,Local3,Local4,Local5,Local6,Local7I could insert the messages into "Local7" bu... |
| 02/15/2008 10:26 PM | Performance Issues with SMTP Appender |
| Replies: 2 |
Hi,
I am using log4net 1.2.10 and have an application which processes around million records on a daily basis. Recently, I added SMTP appender to it and the running time of that process increased from 30 minutes to approx 3 hours even though the threshold value was set at WARN and I didn't log any WARNs at all ever since I added the SMTP appender.
Removing the SMTP appender brought... |
| 02/08/2008 10:17 AM | Multi-app centralized logging vs. per app logging and background process consolidation |
| Replies: 6 |
A previous generation application suite simply uses OutputDebugString( )to achieve centralized logging for a multi-app suite running on a singlehost. The next generation replacement is in the design stage, and willbe distributed. It is desired to maintain an efficient and reliablemeans of centralized logging.One idea is some sort of publish-subscribe model, whereby each appwrites to a ... |
| 02/07/2008 10:07 AM | The current target framework (Microsoft .NET Framework 3.5) is not supported by log4net |
| Replies: 10 |
I have recently installed Visual Studio 2008 which uses Microsoft .NET Framework 3.5. When I tried to build log4net, I got the message “The current target framework (Microsoft .NET Framework 3.5) is not supported by log4net.”
Is there a workaround? If not, when will 3.5 be supported by log4net?
Thanks,
-Mike |
| 02/05/2008 9:58 PM | I'm not able to get the latest version |
| Replies: 2 |
I tried to download the latest (incubating-log4net-1.2.10.zip) release,but the file seems to be corrupted. I tried with WinRAR and also with7zip.Maybe the mirror nearest to my location (Germany) has some problems.I would like to be able to test the last version.Thank you!Rafa--Wincor Nixdorf International GmbHSitz der Gesellschaft: PaderbornRegistergericht Paderborn HRB 3507Geschdftsf|hrer: Eckard... |
| 02/05/2008 7:20 PM | Log4Net used into Class library |
| Replies: 1 |
I'm develping a little library, and I'm adding log features to it, now. Theproblem is that I don't know How I Can configure Log4Net. In my code Iobtain a logger as:private log4net.ILog logger =log4net.LogManager.GetLogger(typeof(OnCloseSessionManager))but, when I need to use it (the logger), it is null.I also have this line in my code:[assembly: log4net.Config.XmlConfigurator(ConfigFile="log4net... |
| 02/04/2008 11:30 PM | need working Log4Net source |
| Replies: 1 |
I have downloaded the source from incubating-log4net-1.2.10.zip,but I was not able to extract it. It throws an error. Can any one help me giving the working source.
|
| 02/04/2008 11:11 PM | need working sorce code for Log4Net |
| Replies: 0 |
Hi,
I was trying to download the log4net zip file and trying to extract it is giving me error, can anyone help me in finding the working code.
Thanks
Srini
|
| 02/04/2008 11:09 PM | A caching / metering SMTP appender ... |
| Replies: 0 |
Several weeks ago, I posted a couple of notes on this list on the subject of metering of SMTP log events and an elapsed time evaluator. The objective was to design a log4net extension that would accommodate the caching and metering of log events sent via SMTP. In a situation where a server is failing and generating large quantities of severe log events that need to be sent via ... |
| 02/04/2008 9:50 PM | Remote listening of server log stream ... |
| Replies: 3 |
I have a scenario where I have a server with several ADO.NET and Windows services running. Under normal operation, the applications write log messages of various severities to a rolling file(s), Windows event viewer, and e-mail via the SmtpAppender.
I would like to set up a logger/appender that would allow remote listening in on the stream of logging messages. In this case, ... |
| 02/03/2008 8:05 PM | Error handling inside log4net |
| Replies: 1 |
How does log4net handling exception of itself--View this message in context: http://www.nabble.com/Error-handling-inside-log4net-tp15253276p15253276.htmlSent from the Log4net - Users mailing list archive at Nabble.com. |
| 01/30/2008 9:25 PM | (AUS1977)logging to different appenders dipending on level |
| Replies: 3 |
Is it possible use log to different appenders from same logger name dipendingon level.I'll try to explane myself mor clearly .For example we have some loggernamed MyLogger so we need this logger to log INFO messages toConsoleAppender,WARN messages to LogFileAppender and ERROR messages toRollingLogFileAppender?SOS!!!!!!!!!!!!!!!!!! |
| 01/30/2008 9:39 AM | ADO.Net Appender connection troubles |
| Replies: 2 |
I am trying to use the AdoNetAppender, but I am in an environment inwhich the connection string is dynamic, depending on which of a seriesof servers the app connects to. My idea is to get a reference to theappender and reset the ConnectionString when my app knows which serverI am connecting to.This sounds fine, but I only have access to an instance of anIDbConnection. The ConnectionString property... |
| 01/30/2008 2:15 AM | UDP Viewers ... |
| Replies: 2 |
I am doing some experimenting with the log4net UDP appender. I’m presently using Log4NetViewer and/or logview4et as receivers for these messages.
Both of these viewing clients have their limitations (except that they ARE freely distributed—thanks to the authors).
Does anyone know of any other UDP log4net viewers? Maybe something with a few more features?
&n... |
| 01/29/2008 3:08 AM | complete docu for current configfile format |
| Replies: 2 |
Hallo @all,
perhaps you can provide me with some hints how to get a complete list of all features, configureable in the configfile. I downloaded the latest version of log4net and studied the great docu and the examples. Googling for more, i found a very important tag that is not listed in the docu (ok, at least i didnt found it): <level>
So, beside of checking the... |
| 01/28/2008 11:34 PM | using a specific log file for a specific class |
| Replies: 1 |
Hi,I'm searching how use a specific log file for a specific class.does log4net provide this feature?thanks.-- Pierre LHUSSIEZ |
| 01/25/2008 8:24 AM | Log4net and SQL Server Reporting Services |
| Replies: 1 |
Greetings,We've been having a hard time convincing log4net to work under SSRS.If anyone has had any positive experiences or suggestions, I wouldappreciate your feedback. We are implementing custom (data andsecurity) extensions and have done the following:All our assemblies (including log4net.dll) in ReportingServices\ReportServer\bin:- Have read/execute permission forSQLServer2005ReportingServices... |
| 01/24/2008 6:01 PM | Does log4net support 64-bit Windows environments? |
| Replies: 8 |
Hello,
We are currently planning on moving our .NET applications from Windows 2003 Server 32-bits, to the Windows 2003 Server 64-bits platform and are investigating if our applications can handle the 32 extra bits.
We use log4net in all of our applications and when looking through the source I saw a few DLL Imports which could cause a problem. I tried looking on the log4net web... |
| 01/17/2008 11:10 PM | Log File Naming Problem |
| Replies: 8 |
Hello,I have a multi-threaded application using log4net 1.2.10 for logging.There are a couple of points when the application runs where there area large number of logs occurring simultaneously from multiple threads(that happen to be in different App Domains). On occasion, I will endup with two separate log files generated when this point in myapplication occurs. One of the log files wi... |
| 01/17/2008 10:56 PM | how to get log4net |
| Replies: 1 |
I am trying to download the latest log4net.
I go here:
http://logging.apache.org/log4net/download.html
and click on the log4net 1.2.10 (zip)
and it times out.
How do I get log4net? |
| 01/17/2008 11:24 AM | Conversion pattern reverse engine |
| Replies: 4 |
Hi
I wonder if anyone can help me with this.I have a log file and the conversion pattern. [%H %d] %c{1} %5p: %m (%F{1}:%L)%nis it possible to extract the log file and get certain field , for example I would like to get "%d" from the log file.If it does, does anyone can give me a bit of example?Thanks, ______________________________________________________________... |
| 01/17/2008 11:22 AM | Fw: failure notice |
| Replies: 0 |
Hi,I wonder if anyone can help me with this.I have a log file and the conversion pattern. [%H %d] %c{1} %5p: %m (%F{1}:%L)%nis it possible to extract the log file and get certain field , for example I would like to get "%d" from the log file.If it does, does anyone can give me a bit of example?Thanks, ___________________________________________________________________... |
| 01/17/2008 6:21 AM | GlobalContext.Properties, RollingFileAppender, and PatternString |
| Replies: 2 |
I have multiple services running using log4net on a system and would like to globally set the base logging directory programmatically at startup.It seems I should be able to set a BaseLogsDirectory property in GlobalContext.Properties and use it in a pattern string like this:<file type="log4net.Util.PatternString" value="%property{BaseLogsDirectory}\logfilename" />
Although the property see... |
| 01/07/2008 6:11 PM | Error handling: how to be sure logs were correctly written ? |
| Replies: 4 |
Hello everyone,
We need a logging framework that runs on CF 2.0 (as log4net exists for CF 1.0, it runs on CF 2.0) that can assure us that log was successfully performed on every Appender.
In fact we want our application to be told by the logging ... |
| 01/04/2008 8:51 AM | Configure log4net in a C# DLL |
| Replies: 0 |
Hi, I am developing a ClassLibrary in C#(VS2005). I have refernce to log4net.dll. This DLL has only one function which will log a string using log4net. My App.config file has the following content: ... |
| 01/03/2008 7:10 PM | Correct point to add a custom property? |
| Replies: 2 |
Hi, We're trying to integrate log4net into our current applicationframework. We need to log an ID property against each log entry,retrieved from the object we're trying to log. This ID willeventually go in a separate column in the database we're logging to.To keep things simple, I'm currently using the FileAppender to testthings.Effectively we want to do :-_logger.Warn(new ... |
| 12/24/2007 9:18 PM | Programatically disable email |
| Replies: 1 |
Hi all!
My current configuration use an smtpAppender with a LevelRangerFilter setted in order to send ERROR messages, but in some cases I would like to disable the email capabilities, in order to achieve something similar to the previous discussion of “Elapsed time evaluator” but in my case I want to manage this in my code.
Is there any idea for this?
Thanks in advance and Mer... |
| 12/20/2007 10:50 PM | Pbx SMDR with log for net |
| Replies: 0 |
a simple question,
is possible to implement log4net to work with tadiran smdr ??
thx in advice,
john |
| 12/20/2007 1:58 AM | BCC in SMTP Loger Appender! |
| Replies: 2 |
Just a simple question!
It is possible to config the smtp logger appender to use a bcc email address?
Thanks in advance
Erlis |
| 12/17/2007 9:23 PM | AdoNetAppender defects when used in Web Services |
| Replies: 0 |
To all,I'm trying to use log4net to log to a database and to the EventLog. Here'smy setup:I have a C# console application which calls a C# web service. Bothapplications are written under the .Net 2.0 Framework. Both applications areusing a "global" xml configuration file, which is loaded via theXmlConfigurator. The configuration uses 2 appenders, the AdoNetAppender andthe E... |
| 12/15/2007 6:25 PM | How to enable IP address logging with Log4Net configuration |
| Replies: 3 |
Hello,I am asp.net user, and want to store IP address in Log4Net logs, I amusing RollingFileAppender, so how can I enable IP logging withconversion pattern.Please let me know, how its is possible ?Thanks in advance,Laxmilal |
| 12/13/2007 10:35 PM | Elapsed time evaluator |
| Replies: 2 |
As a follow up to my question about metering SMTP messages, I was thinking about the possibility of creating a custom Evaluator that works on elapsed time. Whereas the LevelEvaluator triggers on a particular level of message, this evaluator would trigger on a specified elapsed time.
In the case of and SMTP appender, an ‘ElapsedTimeEvaluator’ would wait for a specified period of ti... |
| 12/13/2007 8:42 AM | Addendum: Lossy Value in SMTP Appender - Possible Bug? |
| Replies: 0 |
That should have read:
“Generic. Yes, we have BufferSize set to 1, however,
Development sent me a file with lossy=FALSE. I understand how the lossy value
works, but I am a little fuzzy on this particular situation, which I will
describe below:”
My apologies for the mixup.
CJ
From: Johnson, Cedrick
[mailto:c... |
| 12/13/2007 8:37 AM | Lossy Value in SMTP Appender - Possible Bug? |
| Replies: 1 |
Hello-
My apologies, I’ve been trying to figure this out for the past few hours. We have an application that has the following log4net config:
<root>
<level value="INFO" />
<appender-ref ref="RollingLogFileAppender" />
<appender-ref ref="ConsoleAppender" />
<appender-ref re... |
| 12/12/2007 3:45 AM | Metering SMTP logging ... |
| Replies: 0 |
I have an application for which I would like to use the SMTP logging appender, but would like to add functionality that would limit the number of e-mail messages generated.
Presently, log messages are passed through a method that keeps track of the number and frequency of log messages by level (DEBUG, INFO, etc.). If any ERROR messages are received in a specified period of time (s... |
| 11/29/2007 1:40 AM | log4net-events.dtd ? |
| Replies: 0 |
Where can I get the log4net-events.dtd file? It is referenced in a few places in the documentation (for example: http://logging.apache.org/log4net/release/sdk/log4net.Layout.XmlLayout.html ) and release notes, but it doesn't seem to be in my source download.Thanks.
Never miss a thing. Make Yahoo your homepage. |
| 11/28/2007 1:38 AM | SmtpAppender sending messages late |
| Replies: 1 |
Howdy-I have a problem with the SMTP Appender in L4N that has stumped me forthe better part of today.Summary:When I get a WARN message, it seems that the SMTP Appender will send itout 2-3 minutes after the WARN message was shown in the console. Well,that's all fine and dandy, but by the time we're logging ERROR and FATALmessages, it needs to be as 'instantaneous' as possible.If the app reaches a l... |
| 11/27/2007 9:37 PM | batching log entries until exception |
| Replies: 7 |
Hello,I searched the list for this information, but I think my use case is a bitobscure. I am researching Log4Net as a possible plug-in logger for oursoftware. We would like to have or create an unusual feature. We would like to collect log entries in memory during a discrete scope. Inour case, this would be an ASP.NET request. We want to hold onto these logsin memor... |
| 11/26/2007 8:40 PM | How to write the level in the subject |
| Replies: 0 |
Hi,
I have a short question : using the SmpAppender, how to write the level in the subject?
Thx for your help
Pascal
Ce message et toutes les pièces jointes peuvent être confidentiels, et, de plus, peuvent être couverts par un privilège ou une protection légale. Il est établi à l’intention exclusive de ses destinataires. Toute utilisation de ce messag... |
| 11/26/2007 2:48 PM | How to read and update the log file directory, with .NET C#? |
| Replies: 1 |
I am a newbie in .Net C# and log4Net.
I have my log4net running OK with my .NET app and this is the configuration file.
I need to display to end-user what the directory is for my log file and i want to allow user to provide a new directory name to update the log file.
how i can do that?
please help and thanks
<?xml version="1.0" encoding="utf-8" ?>... |
| 11/22/2007 8:24 AM | RE: Programmatically Change Configuration? |
| Replies: 4 |
Hi,Snozz:
I reset my log4net configuration in global.asax for asp.net project.
string serverMapPath = Server.MapPath("~");
string configFile = serverMapPath + ConfigurationManager.AppSettings["Log4NetPath"]; log4net.Config.XmlConfigurator.ConfigureAndWatch(new Syste... |
| 11/16/2007 1:49 PM | RE: Current file of RollingFileAppender |
| Replies: 0 |
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
|
| 11/15/2007 8:28 AM | Programmatically setting Header |
| Replies: 1 |
Hi, I have all my log4net settings in a configuration file except for the header. This is because I want to output the product version information at the beginning of each log file. This version info is only available to me at runtime. How can I set the Header programmatically?
I tried the following but it doesn't work…
ILog iLog = LogManager.GetLogger(typeof(ICOLogger)); ILoggerRe... |
| 11/14/2007 1:17 PM | No logs on vista in program files |
| Replies: 5 |
No logs are written on vista.I assume this is because the application is run as user not admin, andtherefore log4net can't write to program files area?Where are you writing your logs on vista?--View this message in context: http://www.nabble.com/No-logs-on-vista-in-program-files-tf4802432.html#a13740585Sent from the Log4net - Users mailing list archive at Nabble.com. |
| 11/14/2007 4:56 AM | Multi-threaded ASP.NET application not working ... |
| Replies: 2 |
I am a long time log4net user, but apparently, I have tripped over a scenario for which I cannot seem to find a solution:
Using:
Microsoft Visual Studio Version 2005
.NET Framework Version 2.0
log4net Version 1.2.10
I have a class library in an assembly which contains a data cache object that is multithreaded. It contains a simple worker thread that polls for changes t... |
| 11/08/2007 8:46 PM | Problem with the configuration |
| Replies: 0 |
Hi all.
This is my first post J
I have a web site and a Data Object Layer.
I’m trying to use log4net in my DAL but I have a problem with the configuration.
I want to use an external file named log4net.config in the folder Config/
Here, one class of my DAL:
Imports System.Configuration
Imports System.Data.Common
Imports System.Xml
Imports ... |
| 11/08/2007 6:06 PM | Error text output |
| Replies: 0 |
Hi,
Is there a config key I can specify to prevent log4net outputting to = the Console window if an exception occurs? Im using the CF version as i'm developing on an embedded device and a = Console window appearing if the logging fails is something i'd like to = avoid.
Kind Regards
Simon Tamman
Software Engineer Wayfarer Transit Systems Tel: 01202... |
| 11/08/2007 5:04 PM | Performance issue when using Log4net- asp.net2.0 |
| Replies: 0 |
Hi, I am new to log4net and would really appreciate if someone could help me. I am using log4net with ASP.net 2.0 and was wondering if there will any issues when multiple users are are hitting the website at the same time. I am using I am using FileAppender to log to a single file.Is there a risk of the log file being locked, for data collision..etc. How are log entries captured for all ... |
| 11/06/2007 10:22 AM | Windows service |
| Replies: 0 |
I am trying to use Log4net in a windows service. It works fine when I launch my service in a debug mode, but does not when I run it thought the window service management (run mode). 20 seconds after the start, the service crashes because it raises an unhandled exception named TypeInitializationException. any idea? |
| 11/05/2007 11:16 AM | Could you fix the links under "Example App" page at website? |
| Replies: 3 |
Hi,May I ask you to fix the links inhttp://logging.apache.org/log4net/release/example-apps.html?Seems all of them are broken.Cheers,--DancefireMicrosoft Certified Technology SpecialistCCNAhttp://www.dancefire.org/I'm enjoy in Operating System, Network Security and Embedded System. |
| 11/02/2007 11:58 PM | Bug with IgnoresException |
| Replies: 0 |
Hi,
I’ve tried to log Exception with next configuration
<configuration>
<!-- Register a section handler for the log4net section -->
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
 ... |
| 10/26/2007 1:56 AM | Question about ConfigurationResetEvent |
| Replies: 3 |
Hello, all!
I would like to make use of (and piggyback on) log4net's ability to watch the app config file for changes. I have a Windows Service, which I would like to have the ability to reread configuration on the fly, after I edit the configuration file.
I use the following to init the logger:
log4net.ILog _logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrent... |
| 10/25/2007 6:21 PM | UdpAppender uses UdpClient? |
| Replies: 2 |
Hi,We're looking to use the RemoteSyslogAppender from a bunch of Windowsservices running on the same machine, sending log events to one serverlistening to one port. Looking through the source, RemoteSyslogAppenderinherits from UdpAppender, and UdpAppender uses a UdpClient object. IfI try to start two applications on the same machine aiming to send logevent to the same remote sys log I ... |
| 10/24/2007 7:17 PM | Activate/Deactivate Loggers during Runtime |
| Replies: 2 |
Hello! In a project I'm currently working on, I wish to directly deactivate/activate certain loggers during runtime so that for example the server can determine on certain attributes when to log what. I would realize that by using several loggers, however the person I'm doing this for wants me to implement that somehow inside the code. Anyone can give me a starting point here?I've been googling fo... |
| 10/24/2007 6:39 PM | Newbie: Does Log4Net have the concept of "Topics" and, if so, can I route messages based on topic rather than "Class" hierarchy? |
| Replies: 4 |
The title says it all really, I would like to be able to route my messagesbased on a topic rather than the class that posts the message. For example,I have an audit requirement and a log requirement for the same class.When I start/stop a given job, I want to audit that, but I also want torecord job progress within the class via logging. I see my audit and loggingsinks as being different and back... |
| 10/24/2007 5:10 AM | Config log4net in n-tiear application Framework 2.0! |
| Replies: 4 |
Hi everyone!
I want to configure log4net in order to use the same configuration file (with the watch option active) in my n-tier application!
I have the following structure in my solution:
Website (as a web application project)
Business (as a class library project)
Data (as a class library project)
Test (as a class library project)
I want to be able to log ... |
| 10/22/2007 6:18 PM | Application to view output from a RollingFileAppender |
| Replies: 6 |
Hi all,Does anyone know of an application that is capable of loading a log filethat has been written to using the RollingFileAppender? I know there'sthe Log4Net Viewer and Chainsaw, but I think these applications justlisten to UDP packets, and I need to examine historical logs in files.I need a viewer that can display log entries in date order and groupedby thread ideally. Does anyone ... |
| 10/22/2007 6:13 PM | Newbie: Log4Net or MS Logging Application Block? |
| Replies: 14 |
Hello all,I have been asked to compare the Log4Net library with the Microsoft patterns& practices Logging Application Block.I have searched this forum but can't find anyone who has asked this questionpreviously. I would have thought this is a common topic.Does anyone know if this type of side-by-side comparison has been done? Iknow that both are very extensible, but I am interested in compar... |
| 10/22/2007 4:58 PM | Parameterizing appenders with a conversion pattern according to the level |
| Replies: 0 |
Hello,I now have different console appenders according to the specific levelI use. I have a problem appender, an info appender and a debugappender. I use filters and tresholds to limit the levels theseappenders process.However, the only difference between them is the conversion patternthat is used. Info messages are just written to the console, whilewarn or error messages get their level printed a... |
| 10/13/2007 4:47 AM | Custom Appender - Clients still require Log4Net reference? |
| Replies: 1 |
I have a custom log implementation (baseless LogManager, extended ILog and extended LogImpl).
It's working fine. The only problem is that the projects which reference my custom logger, also seem to require that I specifically add a reference to Log4Net. Is there a way to avoid this? In the main entry to the application, I do have a reference to log4net because I did... |
| 10/13/2007 1:30 AM | Using log4net with VistaDB |
| Replies: 4 |
I am trying use log4net to write to a database. The database we are using isVistaDB. I am able to write to a file correctly but I'm getting thefollowing error when i try to write to the VistaDB file:log4net:ERROR [AdoNetAppender] Could not open database connection[Provider=VistaDB.NET20;Data Source=C:\Documents and Settings\First Name\MyDocuments\Visual Studio2005\Projects\TestApp\Te... |
| 10/12/2007 7:59 PM | Clear the content of the log file from the application |
| Replies: 0 |
Hi there!
How can I clear the content of the log file specified in the log4net configuration file, when it is needed in the application(such as some button click event)? RollingFileAppender does not solve the problem because it is needed to stay the log file name always the same. |
| 10/09/2007 9:14 PM | Including PID in log file name -- Locking Models & ASP.Net |
| Replies: 4 |
Short question: Is there a way in the RollingFileAppender to use the process ID (PID) in the file name?
Long question:
We’re using log4net (1.2.10) in several ASP.Net applications. We’re also using the RollingFileAppender rolling daily, and using a static file name, so the current log-file is “log-file.log” and past log files would be “log-file.log.2007-08-10.log” for example.... |
| 10/09/2007 2:31 PM | Try XmlConfigurator.Configure() if logging is not working |
| Replies: 0 |
Greetings,Just spent a few hours struggling to understand why our logging stopped working,having found the solution, thought I'd post here so it may help others.We have a log factory which produces log4net.ILog objects, which is reallyjust a shortcut to the standard approach you see in most examples.So in our framework assembly we have:/// <summary>/// Create log whose name is the calling me... |
| 10/09/2007 7:09 AM | Newbie problem |
| Replies: 2 |
I’m trying to configure log4net for a console application .net 2.0. I can’t even get the simplest configuration to work. I put this configuration in my app.config:
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
&nb... |
| 10/08/2007 3:35 PM | Logging to different files |
| Replies: 0 |
Hello is is possbile to log to more than one file with only one instance of a ILog object in my code? I like to log errors to the default (root) appender and >WARN additional to an other file. Till now i have to use 2 loggers in my code to achive this. _thanks rene |
| 10/06/2007 7:15 AM | How does log4net prevent file corruption? |
| Replies: 1 |
What happens if the power goes out during a particularly intensive disk writeoperation by log4net? Does the file become corrupt? If not, whattechniques does log4net use to prevent this, and can developers apply thesesame techniques to their .Net applications in general?--View this message in context: http://www.nabble.com/How-does-log4net-prevent-file-corruption--tf4578109.html#a1306... |
| 09/21/2007 1:48 AM | Upgrading Oracle |
| Replies: 1 |
I've upgraded the Oracle OPD that my application is using, but am having an issue getting it right for Log4Net. For the AdoNetAppender, I have the following:
<connectionType value="Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89bf483f429c47342" />
When I run my application, I get the following error from the logge... |
| 09/20/2007 11:11 AM | Can I use static logger and ThreadContext.Properties in asp.net p roject? |
| Replies: 5 |
Dear all:
I am trying to write a log wrap class in asp.net project. I want to use a static logger ,such as public static ILog log = LogManager.GetLogger("XXXX"); Then I want to use log4net.ThreadContext.Properties[Key] to set custom fields. Such as "username". But now, I am't sure if the log is safe in asp.net model?  ... |
| 09/19/2007 1:03 AM | AdoNetAppender and PostgreSQL |
| Replies: 3 |
Hi,I'm trying to use log4net to log events into a database in PostgreSQL. There is no indication in the website if this is supported or example configurations.Is it possible for anyone to tell me if this is possible and, if yes, how? Regards,Nuno |
| 09/17/2007 8:42 PM | Logging to wwwroot location |
| Replies: 1 |
Good Morning,
I cannot write to a log located under Inetpub/wwwroot/WEBSITE/Log/log.txt.
Specifying a location anywhere else works fine.
How can I accomplish this?
Thanks,
Dave K |
| 09/13/2007 1:38 PM | How to get the Lot4Net configaration info in the program? |
| Replies: 1 |
Hi guys:I am using log4net in my ASP.Net project. The Log4Net is configured in theweb.config file. I need to get the Log4Net config info in one of my ASP.Netpages. How to do it? Is there a way to access the Log4Net config info in aprogramming way??CheersZheng |
| 09/12/2007 8:20 PM | Windows: Placing logfiles in Documents and Settings |
| Replies: 0 |
Hi!I want to place logfiles in the Documents and Settings/User/LocalSettings/ApplicationData folder.This folder might be called something else under a spanish Windows. So Ihave to determine thepath during runtime (done withSystem.Windows.Forms.Application.UserAppDataPath). However, sinceI put logging in a .dll assembly (with no Main, thus no best place to callXmlConfigurator),I would like to use t... |
| 09/11/2007 4:56 AM | Trouble using XmlConfigurator assembly attribute |
| Replies: 7 |
Hi…
I’ve got some programs/assemblies that I’m building and for some reason, the XmlConfigurator assembly attribute isn’t working. A couple of the assemblies have
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "App.log4net", Watch = true)]
In their AssemblyInfo.cs files, but when... |
| 08/30/2007 6:26 AM | Write to different Log Files |
| Replies: 6 |
Hi All
I am trying to develop a wrapper logging class in my project. We have multiple class libraries, WCF services, Windows service, Consoles etc in our project and want them to use this wrapper.
I am currently using FileAppenders and my wrapper configures log4net programmatically (threshold level, log file name).
I want every assembly which wants to use this class to log to a different fil... |
| 08/27/2007 9:54 PM | doubt about log4net configuration |
| Replies: 6 |
Hi,
I need some ligths on log4net. A friend of mine told me that we use the log4j and we only configure one file obtaining all log the for the application without adding aditional code lines, including the log of the actions taken in the data base. (INSERT / SELECT / DELETE …)
Konw, i‘m using the DotNetNuke framework to create a portal, and i want to use the log4net to do some ... |
| 08/24/2007 9:48 PM | Error in SqlCeParameter causes error in log4net |
| Replies: 2 |
Hi,
I am having this error:
http://csharponphone.blogspot.com/2006/08/sqlceparameter-bug.html
Are there any fixes for this?
Another thing is that if I adjust my column to a max size of 255 I still get an error if I try to insert more than 255 characters – how do I get log4net to automatically reduce the size of the message to 255 (to cut the last part of the message)?
Best... |
| 08/24/2007 9:02 PM | Release 1.2.11 |
| Replies: 0 |
Hello everyone, somebody know the launch date of release 1.2.11, I needthis release, because I'm using the .net CF 2.0.Thanks and sorry about my english.Facundo |
| 08/21/2007 4:19 AM | Line numbers in release mode |
| Replies: 1 |
I am using log4net to log exceptions, and I thought I saw a way for log4netto get the line number of the exception even if the program was compiled inrelease mode. I know how to get the line number of call to logger.Error(),etc. using patterns, but I want a way to get the line number of theexception without it being in debug mode.Phillip RingSoftware DeveloperHitcents.com |
| 08/20/2007 8:53 PM | log4net WILL NOT write to the log file. |
| Replies: 6 |
To Whom It May Concern:
I have 1st insured that the ASPNET account has write privileges on my \Log subdirectory before I sent this question.
The code fragment I'm using to write with is below. I have also tried example code straight from your samples
to no avail. There is another app running on the same server which has no trouble writing to its log file via
lo... |
| 08/16/2007 4:53 PM | Using XmlConfigurator.ConfigureAndWatch to watch for Config changes |
| Replies: 1 |
I have a ASP .Net 1.1 app which I am using log4net ver 1.2.10.0 with.
I am trying to use the log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(logfile)); method in the Application_Start Method of the Global.asax.cs, but get the following error:
Method not found: Void log4net.Config.XmlConfigurator.ConfigureAndWatch(System.IO.FileInfo).
Description: An unhandled... |
| 08/14/2007 3:42 AM | Setting log levels programatically |
| Replies: 1 |
Hi
I need to set the level for logging programmatically in my code.
I see that the LogManager.GetLogger(logname).IsErrorEnabled or isDebugEnabled is a read only property.
Is there some way to dynamically set the levels for log?
Thanks and Regards
Dipty MaybhateAutomated Precision Manufacturing TechonologyAdvanced Micro Devices
|
| 08/13/2007 10:55 AM | How to use log4net in multi-dll Asp.net project? |
| Replies: 3 |
Now I'm creating an Asp.net project. I create a project called COMMON,I add the log4net.dll to this project and create an interface, soother project can reference this COMMON.dll and use log4net directly.But in Asp.net project, when I use this interface, no log files are generated.How to solve this problem?Thanks. |
| 08/08/2007 5:43 PM | log4net duplicate filtering |
| Replies: 3 |
Hi,I wanted to post the code I'd written for duplicate filtering a couple of weeks ago, but got distracted with some other work. After noticing the recent messages about duplicate filtering, I just figured that posting it in its current state might be of use to people. It's a modified forwarding appender that does duplicate event filtering with a summary message inserted after the series of duplic... |
| 08/06/2007 4:38 PM | Intra-day log space management |
| Replies: 4 |
Hi all,
Hopefully someone will have some helpful advice for me. I'm looking for options for managing log space requirements predominently on an intra-day basis (within the same 24hr period).
One of the qestions I'm being asked about an app I've written is what the log space requirements are which is a difficult question to answer. Normally, they're pretty small but on... |
| 08/04/2007 4:24 AM | Suppress repeated, identical log entries and add a summary log entry |
| Replies: 1 |
I'm trying to design a custom filter using log4net. I'm in the conceptual stageof design and I don't see how I can implement the entire design.The problem is that I want a part of log4net, a filter, to be able to generatelogging entries.I want to make a filter that will suppress identical log messages from the samelogger if they occur too soon after each other, and then emit a log entry whenthe er... |
| 08/04/2007 12:20 AM | UDP Appender Issues |
| Replies: 6 |
Hello,
I’m trying to log events to ChainSaw using the UdpAppender. However, even after following the directions on the web site I keep getting the message:
log4net:ERROR [UdpAppender] Unable to send logging event to remote host ::1 on port 8080.
System.Net.Sockets.SocketException: An address incompatible with the requested protocol was used
at System... |
| 08/03/2007 1:51 AM | Using LoggerMatchFilter |
| Replies: 1 |
I'm looking for a good config example of using LoggerMatchFilter. I am trying to separate difference namespaces into separate logfiles and I see lots of references to LoggerMatchFilter and Repository but I can't find any practical examples that actually get them to work.
_________________________________________________________________________... |
| 07/31/2007 8:16 PM | Add or change parameter value dynamicly |
| Replies: 2 |
Hello. I have a table T_Audit where i want to write my log messages in oracledb. it has a field processid that i want to put dynamically its theidentifier of the process that is doing log not the real process just the idof process table from my database so i decide to write my appender like this <appender name="AdoNetAppender_Oracle"type="log4net.Appender.AdoNetAppender"> &... |
| 07/30/2007 10:20 PM | using log4net on Windows Server 2003 |
| Replies: 5 |
Hello Everyone,I am still having problems using log4net on IIS 6.0 on windows server2003. I gave the Network Service User write permissions, however thelogging still does not work, does anyone have a fix for this?Regards,John |
| 07/27/2007 9:02 PM | what will the inlisted changes in log4net code affect |
| Replies: 2 |
1.remove the extra catch block usedlike a catch block from the code belowcatch(Exception ex){log4net.Util.LogLog.Warn("StringFormat: Exception while rendering format["+format+"]", ex);return StringFormatError(ex, format, args);}catch{log4net.Util.LogLog.Warn("StringFormat: Exception while rendering format["+format+"]");return StringFormatError(null, format, args);}2.Change in config.csSyst... |
| 07/27/2007 2:23 PM | Disable/enable appender for all loggers |
| Replies: 7 |
Hello, I am using three appenders in my log4net configuration (see bellow). But I need programatically disable and reenable RollingFile appender at certain situations. Is there any simple solution? I tried to use programatic configuration only.
My config: <log4net> <appender name="Console" type="log4net... |
| 07/27/2007 12:28 AM | way to log debug output from unmanaged code? |
| Replies: 3 |
Is there a way to listen to debugoutput from an unmanaged c++ DLL? Ididn't see anything on the web site or mailing list archives. ie, something similar like sysinternals DebugView. The c++ code wouldcall OutputDebugStringA. Or is there another way to do it?Thanks,Dan |
| 07/26/2007 11:26 PM | RollingMode Once and Size |
| Replies: 0 |
I know the RollingMode on a RollingFileAppender can be set to Once, Size, Date and Composite, but is there any way to have it set to (Once | Size) so that it rolls once the application starts AND if the file size is ever reached?
John VanderKolk
john.vanderkolk@compuware.com
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential... |
| 07/26/2007 1:14 AM | Meaning or use of the Property NDC |
| Replies: 1 |
hi all. Does anyone know what the property NDC is, and why it returns nullwhenever i log on an asp.net 2.0 web application?thanks guys.--View this message in context: http://www.nabble.com/Meaning-or-use-of-the-Property-NDC-tf4144628.html#a11788506Sent from the Log4net - Users mailing list archive at Nabble.com. |
| 07/25/2007 9:31 PM | Can the latest build of log4net be used in x64 platform? |
| Replies: 0 |
Currently we are having a consolidation project where we need to move all ourapplications into a new environment.All the servers in the new environment will be x64.Can the latest build of log4net used in the x64 platform?Thanks.--View this message in context: http://www.nabble.com/Can-the-latest-build-of-log4net-be-used-in-x64-platform--tf4142231.html#a11782720Sent from the Log4net - Users maili... |
| 07/25/2007 7:42 PM | File Paths |
| Replies: 2 |
Hello,
I’m writing a logger utility for a solution that has several different points of execution. They will all be under some particular folder, but relative to this folder their locations are different. All of these applications are to read the same config file which specifies locations for file appenders, one for each of the points of execution.
My problem is that since log4net reads the pa... |
| 07/25/2007 12:19 AM | Logging several IIS apps. |
| Replies: 2 |
Can anyone give me an example of how we would have one localized configuration script or DB repository to control logging within an IIS Web Server framework? Right now we’re maintaining a logging.xml for each application (virtual directory, alias, etc.) in our system. I’d like to move it all to the wwwroot folder and have one instance, is this possible?
I’ve been using the assembl... |
| 07/24/2007 11:05 PM | LevelMatchFilter gone? |
| Replies: 1 |
We seem to be getting flooded with messages in our logs since we upgraded to the newest version.
Our configuration files have the following format:
<filter type="log4net.Filter.LevelMatchFilter">
<param name="LevelToMatch" value="FATAL"/>
</filter>
I’m seeing on the web instances where the following format is being used:
<filter type="log4net.Filter.LevelMatchF... |
| 07/20/2007 2:04 AM | Application being the remoting server |
| Replies: 1 |
Hello,Looking through the docs and examples, it seems that you need to have aremoting server already running to have an application use aRemotingAppender to send messages via remoting. I have another need, Iwould like my application to sort of be a server, to wait for a clientto connect, and then send messages to that client. I did this severalyears ago with Sockets, but is there a way... |
| 07/20/2007 1:08 AM | configuration file question |
| Replies: 3 |
Hi,Read through the docs and couldn't find the answer...1. Let's say I have 2 appenders, and I want to have the same logger senddifferent levels to different appenders, but it does not appear to work,nothing is going through. Is this possible? If not, is there anotherway to accomplish this? I was considering putting it as a filter on theappender, but I would like other loggers at... |
| 07/19/2007 9:13 PM | plugins |
| Replies: 1 |
I've written a forwarding appender that filters out sequential duplicate events. It's designed to be inserted in the chain before an SmtpAppender to prevent mail recipients being flooded with many identical mails. When the stream of dupes is over, the appender inserts a 'summary event' that describes how many duplicates were filtered out. During development, I copied and renamed ForwardingAppender... |
| 07/19/2007 6:00 AM | ADONetAppenderParameter: Accessing Properties |
| Replies: 0 |
Hello: I am trying to figure out how to set the AdpNetAppenderParameter values in the
log4net.config file to use properties of a class inherited from LoggingEvent.So, I understand that be default, setting up a parameter in the config can look like this: <parameter> <parameterName value="@message" />
<dbType value="String" /> <size value="4000" /> <la... |
| 07/18/2007 7:03 AM | Building A Custom Logger |
| Replies: 4 |
Has anyone had experience building a custom logger?Here is what I am doing. I have created my own interface describing what the kinds of things a logger needs to be able to log in my environment (let's call it IInterface) like security audits, performance statistics, etc. This interface extends ILog as well. Thus: IInterface : ILogThen, I have an implementation of IInterface and we'll call that In... |
| 07/17/2007 10:34 PM | Log4net Appender problem under Linux (mono 1.2.4) |
| Replies: 0 |
HiI have created a simple project for test purpose to test the UDP appenderof the Log4net.For that I have created a simple UDP server listnening on a pre-configuredport.Another widnows client application sends over Log4net UDP APpender messagesto the server. Here is my appender Log4net configuration:<appender name="UdpAppender" type="log4net.Appender.UdpAppender"> &nb... |
| 07/17/2007 8:07 PM | Permission problem with RollingFileAppender |
| Replies: 1 |
Hi all,I have an ASP.NET 2.0 application programmed in VB using log4net. Itproduces logs on the ASP Trace, and also on a RollingFile Appender. Thefile appender works fine logging to a network drive from my developmentmachine using Visual Studio development server, and also to my C driveusing local IIS server, but not when running on the UAT remote servermachine to the same network driv... |
| 07/13/2007 2:48 AM | How is Layout Read In Using The ADONetAppender? |
| Replies: 0 |
Hello All: Currently I am looking into extending some log4net capabilities around using the AdoNETAppender to accommodate my table structure.There is one thing I am having a hard time grasping and that is how the values for the parameters in an AdnoNetAppender are read in. Consider t he following declaration of an AdoNetAppender in t he log4net.config:<appender name="Ado... |
| 07/10/2007 11:34 PM | Problem on Windows 2003 Server |
| Replies: 5 |
Hi,
I am having problems getting log4net to work on IIS on windows 2003 server, it works fine on IIS on my XP, but not on my windows 2003 server.
Regards,
John Muirhead
Software Architect
TSL Jamaica Ltd.
Office (876) 9688988
Cellular (876) 3721549
|
| 07/09/2007 6:19 PM | AdoAppender : limit number of rows in the database |
| Replies: 0 |
Hello,The AdoAppender for Oracle 9i is working fine for me but I'd like to know ifit's possible to limit the number of rows in the database like for a rollingfile appender (i.e. when there are more than 1000 rows in the LOG table, ateach new log to write, the oldest log row is erased from the table).Thanks,Romain--View this message in context: http://www.nabble.com/AdoAppender-%3A-limit-number-o... |
| 07/09/2007 5:37 AM | Making SMTPAppender Send Exactly One Email |
| Replies: 6 |
Hi,I've read the documentation, but didn't manage to figure out whether thefollowing is possible - and if so, how:I have an application that uses Log4Net (d'uh) and I'd like it to sendme an email with all error messages of one application run.The reason is that when for instance the database dies, I'd get LOTS oferror messages and I don't want to get thousands of emails about that.One email would ... |
| 07/06/2007 3:56 AM | ConfigureAndWatch for a web app ... |
| Replies: 3 |
I am attempting to use the method XmlConfigurator.ConfigureAndWatch for a web service application. In the Application_Start method in Global.asax, I have change from:
XmlConfiguration.Configure();
To:
XmlConfigurator.ConfigureAndWatch(“web.config”);
However, log4net appears not to configure properly. I suspect that log4net cannot find ‘web.config’ ... |
| 07/04/2007 5:43 AM | no log file is being created, I am stumped |
| Replies: 0 |
This seems to happen EVERY time I use log4net in a new program. Itake the app.config from an existing project, change the appender nameand the name of the log file and NOTHING happens! I don't get a logfile! Once I get it going, it works GREAT and I love it, it is justthe getting it working! And at 5:30pm on the 3rd of July, I hategoing home with code that doesn't work, but... |
| 07/04/2007 12:55 AM | File Release Handler |
| Replies: 0 |
Hi again all,
Does anyone know if there's an easy way of creating an event handler to wait for a file to be released by an external application?
I'm using an ExclusiveLock model on a RollingFileAppender. The problem is if the file is opened by an external program that enforces a lock on the file, for example Word, when I try and lock my appender I cannot. I was wondering if there was a watcher ... |
| 07/02/2007 8:23 PM | Changing LockingModel at runtime |
| Replies: 0 |
Hello all,
If in my config file I set all of my appenders as MinimalLock appenders, is it possible to later set a specific appender (which I already have code to grab) over to an ExclusiveLock? Also, if I set my config file as a read and watch, when/if it reloads the config file, will the appender be moved back to a MinimalLock, and if it will, is there any way of preventing this?
What would th... |
| 07/02/2007 5:28 PM | Negative precision modifier for pattern layout |
| Replies: 3 |
Hello list!The 1.2 SDK reference states that the logger and type conversationpatterns of the pattern layout accept a precision modifier.Is it possible to specify a precision that will _remove_ the n left mostcomponents? E.g. if logger is "foo.bar.baz" "%logger{-1}" would resultin "bar.baz".We typically use one appender per module namespace so that everythingfrom the "company.product.module.*" name... |
| 06/29/2007 7:34 PM | Log4Net Issue on Windows 2003 Server |
| Replies: 6 |
I have a .Net 1.1 Console App that I have log4net implemented as the logger. The app logs correctly on my local machine (Win XP) but not my dev server (Win 2003). I have tested the application on a number of other Win 2003 servers and it seems to run fine. I have enabled log4net internal debugging but nothing is being logged. When I debug the app on my Dev Server the log instance does not seem t... |
| 06/28/2007 9:43 PM | Multiple connections to same file |
| Replies: 1 |
Hello,
I'm working on a project that involves multiple solutions logging to the same files. It seems that if two different executables try to log to the same file through a RollingFileAppender, only the one that first gets configured is allowed access and the other has to wait until the first releases its hold on it. Is there any way to allow both of them to have write access to the same file? W... |
| 06/27/2007 10:10 PM | Path Sentinels |
| Replies: 1 |
Hello all,
I know that ${TMP} is valid and evaluates to the user's temp directory when used in the config file for a location of a file appender. What is/where can I find a list of all such sentinels I might be able to use, and is there a way of knowing which of them will be able to be accessed be ASPNET user by default without testing them all?
John VanderKolk john.vanderkolk@compuware.com The... |
| 06/26/2007 3:24 PM | Logging problems |
| Replies: 0 |
Hi all,
I am using Log4net 1.2.0.30714 version in the web application which is developed in .NET 1.1. Log messages are logged properly with out any problem when the application is started. But Log stopped writing after some time. I don't know why this happened.After this I enabled Internal debugging in Log4Net and wrote the Trace output to a new text file.from that file I was not able to spot out... |
| 06/21/2007 11:54 PM | no log file is created |
| Replies: 14 |
Dear all,I use to work with Log4j but I am new to Log4net. I try to setup a smallexample but no file is created while logging, though the line with thelog instruction is executed. This is my setup, any hint? Thank you inadvance.*** web.config ***<configuration> <!-- Register a section handler for the log4net section --> <configSections> <section n... |
| 06/21/2007 12:29 AM | Custom Parameters Not Working |
| Replies: 1 |
Hello Everyone:
I am having a problem getting Log4Net to log because a particular Guid parameter I am using.
Here is what I have in my config file:
<parameter>
<parameterName value="@messageID" />
&nb... |
| 06/15/2007 10:45 PM | Reading config in business layer |
| Replies: 6 |
Hi,
I have asp application and writing new module in asp.net; how can I use config settings for appender? I like to use rollfileappender.
I module is class library and tried to add app.config and app.log4net but it's not exe or web so can't read the configuration.
So my question is how to set xmlconfigurator to read config file?
Here is my test class and config file (simple) usin... |
| 06/13/2007 12:29 PM | MbUnit and log4net configuration |
| Replies: 0 |
I'm using log4net version 1.2.10.0 on MS .NET 2.0. My assembly type isan MbUnit (unit test) DLL. I'm launching it using TestDriven.NET. Thetest code is exercising our framework library.The question I have is about how the log4net configuration gets loadedin this instance.If I use MbUnit in its default, which launches tests using amultithreaded apartment (MTA) then none of the log... |
| 06/08/2007 10:56 PM | Can't Get Logging Working in Web Service |
| Replies: 1 |
Hello everyone:
I have tried to enable logging and even the internal debugging of log4net in my web service but I cannot seem to get it to work.
Here is my log4net.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration> &nbs... |
| 06/05/2007 9:05 PM | aspnet_regiis |
| Replies: 3 |
We are using version 1.2 of log4net. I have a question regardingaspnet_regiis that allows the encryption of portions of the web.configfile. I am trying to run the following command which is supposed toencrypt the log4net section of the web.config:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pe"log4net" -app "/encrypt_florida"It errors with:Encrypting configuration s... |
| 05/29/2007 10:19 AM | Log4Net Can Not Log Message When AppDomain Unload , Why? |
| Replies: 4 |
Hi everyone,Details:I used Log4Net for Asp.Net Application under version 1.1.4322.I want to log the Session_End event in the Global Class by the command line "iisreset".but the infomation can not be loged. In the another , the Session_Start event information can be loged correctly.below is the code: using System;using System.Collections;using System.ComponentModel;using System.Web;using System.Web... |
| 05/23/2007 1:54 AM | Customizing Parameter |
| Replies: 1 |
Hello:
When I make a log entry I would like to add a transaction id to the database as well ( using AdoNetAppender of course ) so that it allows me to go back later and trace through a process to see where it succeeded and where it went wrong. I se there is not problem in specifying this parameters at run time. Along with the following code in the config file:
... |
| 05/22/2007 9:39 PM | UDP Appender |
| Replies: 1 |
Hello, I am trying to put the UDP appender to work on my application. Unfortunately, It seems it cant find the ChainSaw endpoint, or may be it is not even sending the UDP message. Unfortunately, I can not monitor localhost udp messages to comment on the UDP issues. &nbs... |
| 05/22/2007 10:52 AM | a bug in log4net.Util.Transform |
| Replies: 0 |
Hi, There is a clerical error in log4net.Util.Transform at line 193. The regular express is written as "[^\x09\x0A\x0D\x20-\xFF\u00FF-\u07FF\uE000-\uFFFD]". According to the definition of XML characters, "\u07FF" should be "\uD7FF". log4net version: 1.2.10Regards,Alan |
| 05/21/2007 10:25 PM | RollingFileAppender truncating loosing data? |
| Replies: 0 |
Hello,we have a system that we are testing in production and I noticed aproblem since yesterday. Upon browsing the logs I started tail:ing themain one. The last log entry before was from 09:56 yesterday.I then generate some more traffic, tail informs me that the file wastruncated (ie log4net/rollingfileappender shuffled the logdata around).When I revisit the previous log file (the one before the c... |
| 05/21/2007 6:53 PM | NullReferenceException in RollingFileAppender |
| Replies: 3 |
Hi everyone,
I’m trying to do something which (I hope) is fairly simple, however in the output from my application it seems that the RollingFileAppender always throws a NullReferenceException in its OpenFile method. Here’s the exception output:
log4net:ERROR [RollingFileAppender] OpenFile(C:\Documents and Settings\bart.read\Local Settings\Application Data\Red Gate\ourap... |
| 05/16/2007 4:48 PM | RollingFileAppender cannot create file in .NET CF |
| Replies: 0 |
Hi all, I have a problem with logging section of my compact framework application. First things first; my environment involves: log4net 1.2.10, .net compact framework 2.0 SP2, windows mobile 5.0 and assembly type is DLL. I'm using rolling file appender with internal debugging but either this debugging output(log4net.txt) nor logging file(log.txt) hasn't been created on device. O... |
| 05/15/2007 5:15 AM | Is there any plan for the next log4net release? |
| Replies: 0 |
Is there any plans for the next log4net release?What the status of 1.2.11?--View this message in context: http://www.nabble.com/Is-there-any-plan-for-the-next-log4net-release--tf3754947.html#a10612272Sent from the Log4net - Users mailing list archive at Nabble.com. |
| 05/14/2007 6:32 AM | Calling a stored procedure with input parameters from commandText |
| Replies: 0 |
Using Oracle 10g and log4net 1.2.9, I am trying to call a stored procedure with a parameter as following in the config file using ADONetAppender but i am not able to get that entry in my database, at the same time i am able to get that in the text file where i am looging using RollingFileAppender as follows ... |
| 05/12/2007 12:42 AM | PatternLayout and ProcessId/PID property |
| Replies: 0 |
I need to expose the processID when logging, but I am not seeing how todo this with a layout type of "PatternLayout". My conversion pattern of:<conversionPattern value="%appdomain %property{log4net:HostName}%processid 0000 %location | %message"/>Results in:MYAPP.EXE MYMACHINErocessid 0000 actual-location-text |actual-message-textI see google-hits where people are referencing the PID in theRo... |
| 05/11/2007 7:35 AM | Compact Framework 2.0 Build?? |
| Replies: 1 |
Hi all,I've dug around the Apache log4net site and am not seeing a CompactFramework 2.0 build available. Can someone point me to it if it existsplease? If it does not, is there a reason?Thanks,Jon |
| 05/08/2007 11:08 PM | IAppender, IOptionHandler oddity |
| Replies: 2 |
Hi all, In our software, we implemented a custom database appender that implements the IAppender, IOptionHandler interfaces, it's called "ApplicationErrorDB". Now this class is not only used by log4net, but I also directly access it through our code as well because I added some additional methods for our software to use. Anyway, one of my method threw an exception when one of our beta tester... |
| 05/08/2007 4:56 PM | FileAppender ExclusiveLock |
| Replies: 0 |
HiI am using "RollingFileAppender" of "incubating-log4net-1.2.9-beta" version in my Product.I found by default, the appender open the file in "Exclusive lock" mode only, in which the fileStream is opened in Read share mode only.As a result of this log files created by this appender can be opened in notepad, but user cannot delete or rename these files.My scenario is like this:In order to see... |
| 05/05/2007 3:23 AM | RollingFileAppender: Date/Time based rolling doesn't work |
| Replies: 3 |
Log4Net 1.2.10.In an ASP.NET web application I've configured a RollingFileAppender to rollevery day. It works fine on my development server.On the production server, I never see a rolled file - instead it alwaysappends to the configured log file.The main difference I can see is that the ASP.NET application is restartedevery night on the production server. Access to the application andt... |
| 05/03/2007 4:43 AM | Help needed with log4net |
| Replies: 2 |
Hello,
I am using log4net to log messages in my web application. Logging messages is working exactly the way I need, but sessions are getting expired when I log the messages. Sessions are working fine if I do not use log4net. Could you please help me solve this issue.
This is my configuration in my web.config
<configSections>
<section name="log4net" type="Syst... |
| 05/02/2007 10:28 PM | Need help on testing dll, that uses external configuration file, using Nunit. |
| Replies: 10 |
I have extended the log4net , to suite my requirements.Now I want to write, the unit tests for that library, using externallog4net configuration file.I want to use Nunit. My question is how to test my dll, with the use ofexternal log configuration file. Could you point me in the right direction.In my extension dll, the code looking for the config file, in basedirectory, but not successfull... |
| 05/01/2007 9:45 PM | Multiple repositories |
| Replies: 2 |
Hello. After understanding how i can use Repository attribute for creatingindependent logging and checking different scenarios of configuration Ifound that i can "apply" the application's configuration to be the 3rd partylibrary's configuration by adding AliasRepository attribute in theapplication's code.What if i have two 3rd party libraries with different repositories definedand want them to u... |
| 05/01/2007 1:35 AM | %l to %level difference.. |
| Replies: 2 |
Hi,I'm having an trouble with %l and %level specifiers. MyRollingLogFileAppender is as below:[CODE]<appender name="RollingLogFileAppender"type="log4net.Appender.RollingFileAppender"> <file value="..\\Logs\\CurrentLog.log" /> <appendToFile value="true" /> ... |
| 05/01/2007 1:29 AM | AdoNetAppender for SQL db issue |
| Replies: 2 |
Hi Log4Net developers/users,I'm currently developing a logging mechanism for our company and I'm havingan issue with the below code - its not working!![code]<appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender"> <bufferSize value="100" /> <threshold value="WARN" /> &n... |
| 04/30/2007 6:07 PM | 3rd party assembly logging |
| Replies: 0 |
Hello. I failed finding a clear answer to my question here, though there areseveral posts that touching the subject.I have a set of shared assembly which use log4net. However, the applicationdoes not have to use it as well i do not want that the log4net configurationof the application will dictate logging behavior of the shared assembly. Inthe case the developer wants to output log from the shar... |
| 04/30/2007 6:07 PM | 3rd party assembly logging configuration |
| Replies: 8 |
Hello. I failed finding a clear answer to my question here, though there areseveral posts that touching the subject.I have a set of shared assembly which use log4net. However, the applicationdoes not have to use it as well i do not want that the log4net configurationof the application will dictate logging behavior of the shared assembly. Inthe case the developer wants to output log from the shar... |
| 04/27/2007 8:19 AM | Website content errors/ambiguity |
| Replies: 1 |
Hi,
I’ve found this comment on your website that is confusing to me.
On http://logging.apache.org/log4net/release/features.html#context, the text “is can” makes it contradictory, which one is it?
“Logging Context
log4net can collect logging context data in a way that is transparent to the developer at the point of logging. The GlobalContext and the ThreadContext allow the app... |
| 04/27/2007 5:27 AM | Event ID's in the EventLogAppender... |
| Replies: 2 |
I'm probably missing it, but are there any samples of specifying the EventID with the EventLogAppender? If so, could you point me at them?
Thanks!
Rory |
| 04/24/2007 4:42 PM | Configuration problems |
| Replies: 2 |
Dear all,
Recently, I seem to have problems configuring the log4net. I am using Visual Studio 2003 and am developing a rich client application. I depend on the logs to tell me what the errors are when troubleshooting by remote.
When I configure the settings using the xml in the app.config file, it works fine without problems for users who have administrator privileges
... |
| 04/24/2007 12:40 AM | Is there a way to use log4net without the App.Config file all-together? |
| Replies: 4 |
Hi All:
Maybe you can point me in the right direction. I’m using .NET 1.1 and log4net 1.2.
I was able to get log4net integrated into a WinForms application in C#. My manager asked if I could completely remove all log4net dependencies to the App.Config file.
I was able to pull out all of the entries in between:
<log4net>
….
</... |
| 04/21/2007 10:18 AM | "A log4net appender that uses SmtpClient" blog post about SmtpClientSmtpAppender for sending SSL mail in 2.0 |
| Replies: 0 |
Ted Graham posted code for a SmtpClientSmtpAppender that extends the SmtpAppender by using the SmtpClient from .NET 2.0 to communicate over SSL with a mail server:http://weblogs.asp.net/tgraham/archive/2007/04/20/a-log4net-appender-that-uses-smtpclient.aspxAn additional option would be to be to send all the log messages as a file attachment (and/or zipped file attachment) and only include the most... |
| 04/20/2007 5:47 AM | asynchronous http logging |
| Replies: 1 |
Reposting - I apologize for the previous HTML post. Hit send too early. Anyway...We are looking at log4net as a new logging app but are really interested in something that will allow us to handle all logging asynchronously. Basically, we want the HTTP request to complete without waiting for the logger to finish. I was reading in the documentation about logging in multi-thre... |
| 04/20/2007 1:38 AM | ArgumentNullException on log4Net.LogManager.Shutdown() |
| Replies: 0 |
Hello, I am new to log4net and am looking for some advice on how to avoid an exception.
I am trying to get the logging for several apps to the same log file through your remoting appender. Everything works wonderfully until I move to shutdown the LogManager.
I initialize my LogManager as follows:
void Initialize()
{
System.Configuration.Configuration config = System.Configu... |
| 04/18/2007 5:55 AM | Cannot create log from vb.net class library .dll |
| Replies: 4 |
I have created a web service and web service client that both utilize log4net nicely. The service side utilizes a class library .dll which I’ve also attempted to use log4net for logging. I have been unable to create a log or write to the referring web service log from the class library yet.
Here’s a stripped down version of the current class library dll code:
... |
| 04/17/2007 6:13 PM | Re: Visual Web Express Edition Sample |
| Replies: 2 |
2007/4/17, Antonio Jimenez <superantonioxp@gmail.com>:> Hi>>>> I'm developing using the visual Basic Web Express Edition and I need> to use log4net. Could you sent me a log4net sample for this vb> edition?>>>>>> Thanks>>>> Antonio jimenez>>> --> Antonio Jimenez> 677 55 33 35>>> --> Antonio Jimenez> 677 55 33 35&... |
| 04/11/2007 1:21 AM | Question about rollingfileappender |
| Replies: 1 |
I want to use RollingFileAppender class but I want to log the messages in aRSS based format. I tried extending from RollingFileAppender and overridingthe Append method, but was unable to do much except call the base classAppend method. Is it possible to write to the file that is maintained inthe base class without calling base.Append?--View this message in context: http://www.nabble.... |
| 04/06/2007 3:18 AM | Logging large messages using ADO.NET appender |
| Replies: 2 |
Hi,
I am trying to log a large XML message whenever there is an exception in our application. I have defined my table as follows, i.e. setting the Message column as ntext.
CREATE TABLE [dbo].[ Log](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Date] [datetime] NOT NULL,
[Mac... |
| 04/05/2007 4:37 AM | FileAppender+MinimalLock not working as expected |
| Replies: 11 |
Hello,
I have an WinForms application in C# that generates data files for a graphing application. This application uses log4net to log progress, information, errors, etc. I also want this application to be able to view the log file. When I try to open the log file I get the following error message:
The process cannot access the file “C:\....\MyApplication.log”... |
| 04/05/2007 4:31 AM | FileAppender ExclusiveLock workaround (Not MinimalLock) |
| Replies: 6 |
Hello,We used to use a really old version of log4net (1.2.03) but have sinceupgraded to 1.2.10. With the old log4net we created a custom FileAppenderso that different application domains could log to the same file (this wasbefore the days of MinimalLock). Basically, what we did was to override theOpenFile method to open the file stream in share mode, thus allowing manyprocesses to wr... |
| 03/30/2007 7:06 PM | Logging in dependency of release or debug mode |
| Replies: 1 |
Hi,can I use log4net to log something in dependency of the VisualStudio releasemode or debug mode?Example:I don't want the end user to see notice logs when he uses the release build.How can I config this?Thanx!!! |
| 03/26/2007 7:25 PM | buffering appender :auto flush as a function of logging level? |
| Replies: 1 |
Hello, I have a feature request for the buffering appender.It would be nice to have a way to state in the config file that we would like all levels above a certain level to be flushed automatically for the buffering appender. For example, in some applications logging at the Error level or Fatal levels represents critical information, so it would be nice to flush these automatically.cheers,shelby |
| 03/22/2007 3:22 PM | logging from diffrent levels to diffrent appenders |
| Replies: 1 |
Hello,
Is there a way, on the same logger,
to log Error level to the console and Warning(and above) level to a file?
Thanks,
Adi |
| 03/21/2007 11:16 PM | obtaining line number information on CE using pdb files |
| Replies: 0 |
Hello,I was wondering if it is somehow possible to get line number information on Windows CE 5.0 (.NET compact framework) particularly for exceptions by using the pdb files. I tried copying the pdb files to the executable's directory with no luck. I know StackTrace info is not available on the compact framework, but I thought there might be a work around to get this information for exception... |
| 03/21/2007 9:05 PM | System.Trace.Diagnostics to log4net |
| Replies: 2 |
Hello,I would like to get diagnostics messages (for different wcf services)routed to log4net and then to the log4net appenders.Is there a standard way to do this? Basically, I need a tracelistenerfor the system diagnostics trace system that sends the messages on tolog4net. A Log4NetListener.Any help appreciated!Best regards,/mawi |
| 03/21/2007 2:04 PM | Logging in different files |
| Replies: 0 |
Hello, I am using Log4Net, I want to log the info in the seperate file and the error or debug related info in seperate file, I am successfully able to generate both files, but the problem is that both files contains both information like INFO and DEBUG log..I want to seperate it and wants to log DEBUG info in DEBUG file I am using RollingFileAppender. Please Help Thankx and best regards Austi... |
| 03/19/2007 8:08 PM | InvalidOperation: Collection was modified |
| Replies: 8 |
We are using log4net for several months in production environment. Andsometimes we are received a message error "InvalidOperation: Collection wasmodified; enumeration operation may not execute". This message is providedby log4net. Someone knows this problem ?Thank you--View this message in context: http://www.nabble.com/InvalidOperation%3A-Collection-was-modified-tf3426882.html#a9551617Sent from... |
| 03/16/2007 10:15 PM | Specifying a different directory for logs |
| Replies: 1 |
Hi,
Is it possible to write logs to a different directory other than the executing assembly directory?
We are using the rolling file appender.
Regards
Paul Brine
Wayfarer Transit Systems Ltd
*** This email may contain confidential information and/or copyright material. This email is intended for the use of the addressee only. Any unauthorized use m... |
| 03/12/2007 10:52 PM | RemotingAppender - Server failure |
| Replies: 0 |
Hi eveyone,I am starting to test log4net to manager logging stuff for a .Netapplication.I want to write a sample to valid a technical point.A Server is launched to listen for logging events;The client starts a "stress test" against the server, which must be abble tologin a database or in simple text file.I want to know if log4net knows how to manage a network failure or a servershutdown.Is log4n... |
| 03/07/2007 4:35 PM | objectDisposedException on compact Framework 2.0 |
| Replies: 0 |
Using Windows CE and the compact Framework 2.0 , I get an ObjectDisposedException in the class QuietTextWriter .This occurs on program termination when I use a FileAppender. There is no functional consequence to my program since it only occurs at the end. The error occurs in the Close functionoverride public void Close() { &n... |
| 03/07/2007 2:54 PM | XmlConfigurator not an attribute class? |
| Replies: 1 |
Hi all,
I'm trying to add an xmlConfigurator in AssemblyInfo.cs but to no avail. I tried the online examples which is to:
[assembly: log4net.Config.XmlConfigurator(
ConfigFile="Log4Net.config",Watch=true )]but the compiler complained taht XmlConfigurator is not an attribute class. I'm doing a C#.net proj using VS2005.
How can I specify correctly in the assemblyinfo.cs to make ... |
| 03/07/2007 10:49 AM | log images to sql server using log4net |
| Replies: 0 |
Hi
Is it possible to log images to sql server using log4net AdoAppender?
Newbie,
Thanks
Never miss an email again!Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out. |
| 03/06/2007 4:50 PM | using L4N to view RollingFileAppender with log4net.Layout.PatternLayout |
| Replies: 0 |
Hi, How do I configure L4N to read RollingFileAppender log with layout type="log4net.Layout.PatternLayout"? Thanx for all helps! |
| 03/06/2007 8:07 AM | Programmatic config and thread safety |
| Replies: 2 |
I am currently designing the logging componet of a larger software project (C#, .NET 2.0, Log4Net 1.2.10). It's basically a custom logging API which uses Log4Net behind the scenes. The project involves multiple processes, some of which have multiple threads. It is also a requirement that all configuration must be done programmatically rather than with a config file (... |
| 02/27/2007 11:19 PM | Configuring from code |
| Replies: 4 |
I need to configure log4net from code, to verify that some of my code is output the correct log messages.The issue is that I basically wants to do something like:EnableLogsFor("MyLogger");//run testStopLogging();The real problem is that the amount of logs that are generates is fairly huge, and I want to be able to open just one, and close just one, without impacting anything else.Any ideas how I c... |
| 02/23/2007 5:56 PM | RollingFileAppender and Windows service |
| Replies: 0 |
Hi, I'm writing an application that is running within an AppDomain that has been created by a Windows service. This framework is calling XmlConfigurator.ConfigureAndWatch and sets the ApplicationBase for my software to AppDomain.CurrentDomain.SetupInformation.ApplicationBase. In my log4net config file I'm using RollingFileAppender that is described in the examples. And I've got the following behav... |
| 02/23/2007 3:41 AM | Problem if Log4Net is used in to different DLLs within a project |
| Replies: 5 |
Hallo,I am having an application, WindowsForms .NET 2.0, which uses different DLLs.Everything is working as long as I use Log4Net just within one DLL.Trying to use Log4Net with 2 or more DLLs by using a DLLName.dll.config file for each DLL,configured within the AssemblyInfo.cs result in not having any logging output.Moreover, just using Log4Net within 2 different DLL with having just 1 DLL set up ... |
| 02/20/2007 4:46 PM | Documentation on reconfiguring and isdebugenabled |
| Replies: 0 |
Hello,I would like to get the following test to pass, I've searched thearchives and cannot find a definite resolution. Hierarchy repository =(Hierarchy)log4net.LogManager.GetLoggerRepository(); repository.Shutdown(); &nbs... |
| 02/15/2007 6:52 PM | RollingFileAppender: date based roll |
| Replies: 1 |
Hello, is there any possibility to configure RollingFileAppender(configured to roll every day) to use directory name based on current date?I wish to log to 2007-02-15\test.log.2007-02-15I have tested solution based on PatternString in file element (seebellow), but it is not functional. The fileName pattern is parsedexactly at program start and it never changes if program is runningthrough midnight... |
| 02/13/2007 11:09 PM | Installation problem with Log4Net Dashboard 1.2: Object reference not set to an instance of an object. |
| Replies: 2 |
Dear mailing list, I'm getting into troubles installing Log4Net Dashboard 1.2 on a Windows 2003 server that runs IIS 6.0 with .NET v1.1.4322. After installing the software using the installation files from http://www.l4ndash.com/Download/tabid/53/Default.aspx, the URL http://localhost/l4ndash returns the following error: Server Error in '/L4NDash' Application. -------------------------------------... |
| 02/12/2007 9:17 PM | ReSharper log4net support |
| Replies: 2 |
Arp Another ReSharper Plugin aplha1 availableThis version contains log4net support.There are xml configuration features: 1. Code completion for tags, attributes and attribute values 2. Navigation for types and appenders 3. Search (Find Usages) 4. Highlighting 5. Hints 6. Basic validation for parameters valuesRequrements&... |
| 02/09/2007 2:04 PM | Locking and multiple projects fileAppenders |
| Replies: 2 |
Hello, I am having the follwing .net solution: - 1 web application (asp.net 2.0) - 1 console application I am using log4net v1.2.9. Both have their own .config files and both are using a FileAppender with xml layout. The problem is that I cannot use 1 file for both FileAppenders, even when using MinimalLock. The web.config looks like: The ap... |
| 02/08/2007 2:23 PM | Calling Configure serveral time |
| Replies: 9 |
Hi, AllI want to use log4net in my component that will be hosted in an application.I'm going to initialize log4net with XmlConfigurator.Configure(fileName) whenmy object is being constructed. The point I'm not sure of is my object can becreated several times by the application. The application does not use log4netitself. Is there any pottential problem calling XmlConfigurator.Configureseveral time... |
| 02/07/2007 5:41 PM | How to save changed configuration to app.config? |
| Replies: 3 |
HelloI am using app.config for configuration of log4net.Reading my loggers, appenders and so on is O.K.Changing the values on runtime is also O.K.But how to save the changed values to app.config?Thank youHelmut |
| 02/06/2007 10:08 PM | Validating log4net configurations |
| Replies: 1 |
Hi All,
While log4net operates as expected by failing early and quietly I have a need to know specifically why it isn’t logging when it isn’t. I have been looking around for methods to validate a log4net configuration in order to ensure that the file is set up correctly and I couldn’t find any solution apart from me maki... |
| 02/05/2007 12:00 PM | utilize logging functionality in my add-in |
| Replies: 3 |
I've used log4net in several project.It's good.But now, the problem is I want to use log4net for logging in my vs2005add-in, it's a class library assembly.Previously, I use log4net in terms of standlone application such as windowsapplication, asp.net application etc. Now it's an class library.Anyone can tell me how to use log4net in my add-in for logging?Thanks in advance._________________________... |
| 02/02/2007 1:01 AM | Configuration problem (locking files) |
| Replies: 1 |
Hi
I have been given an application consisting of 5 web projects and 5 back end objects into which I would like to introduce log4net. I don’t have a master web.config file (no hierarchy) so I was trying to put the configuration settings into one xml file on the server and introduce code into the global asax to configure each project on Application_Start (.NET 1.1 C#). The pr... |
| 02/01/2007 6:15 PM | Logging stack trace |
| Replies: 6 |
Hello everyone,Is there a way to add a stack trace to each log event for a certainappender layout?I have an errorappender, and when it receives an event to log, I wouldlike it to log the whole stack trace as well.This is for debug and test purposes./marcus |
| 02/01/2007 5:56 PM | AdoNetAppender and reconnect |
| Replies: 4 |
Hi,I have problem with AdoNetAppender. When the DB is restarted or for sometime unavailable, the Appender stops logging for ever.Even when the database is down for some minutes, the appender doesn'trecover after several hours.Is there any possibillity ho to force Appender reconnect withoutrestarting the application (it's ASP.NET)?Thank youMartin Hassmanhttp://www.met.cz/ |
| 01/31/2007 5:03 PM | Logging exceptions using a separate layout |
| Replies: 1 |
Hello,I would like to log events that have an exception so that the exceptionand stack is printed on the nextline, but I do not want to get emptylines between events in the log for all events that have no exception.To achieve this, is there a way to filter parts of a layout? Or specifya layout for events that have exceptions? Or something similar?Help is greatly appreciated!/mawi |
| 01/30/2007 5:24 PM | Log4Net configuration |
| Replies: 1 |
Hi,I am using Log4Net for My website. that is good logging tool. I am usingrollingfile Appender, with info, debug, warn ans fatel level.. but when usethat level the log file have llevels WARN, FATAL, INFO, and DEBUG, I wantsinstead of these words custom words for that.. so anyone tell me about, isit possible of How ?Thanks in Advance,Laxmilal Menaria________________________________________________... |
| 01/20/2007 10:54 PM | What is the best way to attach an ID with each logged message? |
| Replies: 2 |
Hello,I'm looking for a possibility of attaching an ID to each information logged using Log4Net. What will be the best way to use in order to be compatible with with existing viewers (chainsaw, ...).Basically, I want to expose such an overloaded method in my Logger façade:void Info(int id, string msg);and I would like to have this information displayed/available in existing viewer and appenders.Th... |
| 01/19/2007 1:54 AM | Wrapping Log4Net in a Facade --> incorrect LocationInfo shown for file, methods.... |
| Replies: 4 |
Hello,
We are trying the Log4Net in our projects. However, for different reasons, we want to expose it to our developers through a Tracing/Error class facade.
Doing so, we face the following problem:
Whenever an Appender print information about LocationInfo (File, line, Method,....). It will take information related to the caller of the Log4Net method (which is the facade in o... |
| 01/17/2007 11:14 PM | Only the first message gets logged by a DLL |
| Replies: 1 |
Hello,
I have a DLL which gets called from within two applicatons - an application which consists of 3 assemblies deployed in SQL server (log4net and the DLL assembly are referenced and installed in the SQL server)
- an ASP.net application which uses the DLL (the DLL is a project in the Visual Studio solution)
When any of these applications run, the first time we log a message in the DLL, it ... |
| 01/17/2007 10:39 PM | ADONetAppender with Postgres |
| Replies: 0 |
Hi,
I’m building an ASP.NET 1.1 web application using log4net version 1.2.10.0 and Postgres 8.1. I was planning to use ADONetAppender to log the errors to the database but the log4net website does not have Postgres on the list of databases supported for this and I can’t find any information on Google about it.
What I want to know is if it is possible to log the errors to a Post... |
| 01/17/2007 10:15 PM | AdoNetAppender Connection String from App Config |
| Replies: 2 |
Hi All,
I am trying to pull the configuration for the connection string of an ADONetAppender outside of the log4net configuration information. Is there any way that I can update my AdoNetAppender with a new connection string after using the XmlConfigurator to load the configuration?
Since I already have connection strings that need to be populated for Castle, ASP.NET membership... |
| 01/12/2007 8:39 PM | RollingFileAppender almost never rolls |
| Replies: 0 |
I have a c#-assembly that uses a RollingFileAppender for logging. The config file looks something like:<?xml version="1.0" ?><log4net threshold="INFO"><appender name="RollingLogFileAppender" type=" log4net.Appender.RollingFileAppender"><file value="y:\\MyApp\\log\\MyApp_rolling.log" /><appendToFile value="true" /><rollingStyle value="Date" /><datePattern valu... |
| 01/12/2007 5:04 PM | ConsoleAppender doesn't write anything (anymore) |
| Replies: 0 |
Hi all,I'm using log4net 1.2.10 and unable to output anything on the console anymore.The strange thing is that when I debug the application in Visual Studio, I can see output being logged. But when started in a simple dos prompt (cmd) nothing is logged. All other appenders (Ado and FileAppender) are writing output without any problems.Does someone have any clues?regards,Kenneth |
| 01/12/2007 5:10 AM | Log4Net Progress? |
| Replies: 0 |
Is it just me, or has work on Log4Net completely stopped? What's the likely hood of it being ported to version 3 of the framework? |
| 01/12/2007 3:31 AM | Could not find schema information for the element 'log4net' |
| Replies: 1 |
Hi,I am getting the following error upon compile of .Net 2 , Web App in C#:Could not find schema information for the element 'log4net'Every element in the <log4net> web.config file is also returning the sameabove message. I am using log4net 1.2.10 (using the release dll from the 2.0folder, but this was also happening with an older DLL which a colleague hadgiven to me as well)I believe there ... |
| 01/12/2007 3:04 AM | Which patterns are allowed for naming File appenders? |
| Replies: 1 |
It seems that %processid is the only PatternString that works in the name of a File appender. I’ve tried to use %date{} in various ways, but that seems to prevent a log file from being created at all. Is this by design? I’m trying to create a separate log file for each invocation of my application, with the date that the application was started in the file name. Is there a different way to do th... |
| 01/08/2007 8:02 PM | AdoNetAppender problem. |
| Replies: 5 |
Hello. Help me please.I'm using AdoNetAppender. How can I pass NULL value into stored procedure ?Here is my code: ... ThreadContext.Properties["ProcessID"] = DbNull.Value; log.Debug(message);Con... |
| 01/04/2007 4:53 PM | Log4View Version 1.0.9.0 released |
| Replies: 1 |
Dear Log4Net users,
we have just released Version 1.0.9.0 Beta of Log4View, a powerful and comfortable viewer for Log4Net output.
General Features of Log4View:
· Filter by loggers, log levels or any other criteria.
· Search log entries by loggers or message text.
· &nbs... |
| 01/03/2007 1:24 PM | Codeproject.com article/code for Log4NetWebServiceAppender |
| Replies: 0 |
I read the article but haven't looked at the code yet:http://www.codeproject.com/useritems/Log4NetWebServiceAppender.asp |
| 01/03/2007 5:26 AM | RE: Cannot get consoleApp to run on XP |
| Replies: 3 |
Are you sure it's log4net that's causing the issue? I'd post the configfile. Make sure you don't have an extra < or > in the file anywhere. Openthe config file in something that does syntax highlighting. |
| 12/22/2006 2:12 AM | Dynamic SmtpAppender subject |
| Replies: 2 |
Hi,Is it possible to use the log message as subject on the smtp appender?- Morten |
| 12/21/2006 6:31 AM | log4net is truncating log messages with %20.20type{1}.%-30.30method in the ConversionPattern |
| Replies: 1 |
we've encountered a problem where log4net is truncating log messages (samples below). The truncating only happens when we compile in release and the ConversionPattern includes %20.20type{1}.%-30.30method. I'm assuming it has to do with the code optimizations interfering with log4net. What can we do to get the release logging to work correctly? Thanks,Drewenvironment:- version 1.2... |
| 12/16/2006 4:41 AM | Log4net not working as expected |
| Replies: 3 |
Hello,
I have an issue with log4net that I was sure was not an issue before. I have a project which is made up of a few other projects. There’s an exe and 4 other dlls. Logging from the exe works while logging from the dlls does not. Like I say, I know this has worked before. I’ve read thru the documentation and everything looks identical. Does anyone see what I might be doing wrong here or kno... |
| 12/16/2006 1:27 AM | Multiple logs with multiple threads |
| Replies: 1 |
Hello All,I have an application that is doing some generic scheduling and executing ofother objects. Each of these new objects is executed in a separate thread.What I would like to have happen is to be able to dynamically create aFileAppender that is associated to each object so that any logginginformation raised from that object only goes to the associated file. Can anyone give me any ... |
| 12/14/2006 9:54 PM | AdoNetAppender configuration note |
| Replies: 0 |
Hello, All.In case some folks have been wondering why they cannot get theAdoNetAppender to work, along with maybe also using custom parameterfields, I found that the log4net documentation and what works for myprojects is different when interfacing with SQL Server 2005.In the web/app config file in the AdoNetAppender, change the buffersizefrom the documented 100 to 1, like so:<appender name="Ado... |
| 12/13/2006 6:44 AM | Meaningful caller information |
| Replies: 0 |
Hi everyone, I've taken to creating a base class that implements the necessary Log4net interfaces and then derive all my children classes from that. So far it all works well and I've no complaints about the approach. However I've come up against an issue where I would benefit from detailed caller information (to the line # if possible), and the line numbers that are being logged of course r... |
| 12/12/2006 2:28 PM | TraceAppender understanding |
| Replies: 2 |
If I write this in my Config file : <appender name="TraceAppender" type="log4net.Appender.TraceAppender" > <filter type="log4net.Filter.LevelRangeFilter"> <acceptOnMatch value="true" /> </filter> <layout type="log4net.Layout.PatternLayout"> &nb... |
| 12/12/2006 10:46 AM | Need help about RollingLogfileAppender. |
| Replies: 1 |
I have read document about Log4Net and I have some info aboutRollingLogFileAppender : The new file will be created depend on the size ordate in Config file.Is it right ?If it is right, I configured my file Log4Net.Config :<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> <fil... |
| 12/11/2006 4:06 PM | Problem with Log4Net.config file. |
| Replies: 2 |
I create a file : Log4net.config in my project for Log4net configuration (Ido not want to write them in Web.config)But I can not write to log file (for example : C:\\Log_file.txt).(If I config in Web.config, Log_file.txt is updated)Please tell me how I can use external Log4Net.config instead usingWeb.Config.(I am using ASP.Net 2.0)Thanks in advance!--View this message in context: http://www.nabb... |
| 12/07/2006 5:37 AM | Question about rolling appenders... |
| Replies: 0 |
I have a task to reconfigure our RollingFileAppenders so that they roll over every 15 minutes, but looking through the docs, I don't see this granularity of control. Is this something that I'm missing or is it not feasible?
Thanks!
Rory |
| 12/06/2006 4:33 PM | XmlHierarchyConfigurator |
| Replies: 6 |
Hi, All!
I have some private extension for default Hierarchy. And i want to configure it and update it on config-file changes.
I can use basic configuration features, but its insufficient. For example, i want to especially parse some children nodes, as it do XmlHierarchyConfigurator. And, i want no ResetConfiguration required to clear my collection properties and fill ... |
| 12/06/2006 1:24 PM | Question on Date/Time based rolling |
| Replies: 6 |
I need to have date based rolling for log files and want to keep only the 30 log files (corresponding to the last 30 days). Is that possible (with MaxSizeRollBackups or some other way)? If yes, please send me the corresponding xml configuration for the appender. Based on the RollingFileAppender documentation, it says"CAUTION
A maximum number of backup files when rolling on date... |
| 12/06/2006 12:22 AM | Problem mocking log4net appender (Repost) |
| Replies: 2 |
Greetings,Can anyone suggest a workaround to this problem?I attempting to mock a log4net (1.2.10.0) appender with NMock2(1.0.2313.18049). The mock appender throws an ExpectionException whenlog4net calls DoAppend and then log4net eats the exception the testfinishes successfully. UnfortunatelyVerifyAllExpectationsHaveBeenMet() does not cause the test to fail.Apparently the mock appender does not rem... |
| 12/05/2006 9:23 AM | Startup-Shutdown Error? |
| Replies: 5 |
I've git the following code in the main form for a project: [NonSerialized] protected static readonly ILog log = LogManager.GetLogger("errorlog"); public MasterProject() { &... |
| 12/03/2006 3:02 PM | Fwd: Problem mocking log4net appender |
| Replies: 1 |
---------- Forwarded message ----------From: Matt Young <matt.young256@gmail.com>Date: Nov 14, 2006 8:01 PMSubject: Problem mocking log4net appenderTo: nmock-general@lists.sourceforge.netGreetings :)I encountered a problem with NMock2 (1.0.2313.18049) while attemptingto mock a log4net (1.2.10.0) appender. The mock appender throws anExpectionException when log4net calls DoAppend and then log4... |
| 11/24/2006 7:55 PM | log4net Version 1.2.0.30714 : Daily log with infinite persisting backups |
| Replies: 0 |
Hi,
I’ve got the following settings.
These should create 5 backups files every hour. It’s not happening. It’s creating only two (MyLogFile.log and MyLogFile.log.1). But if I change rollingStyle to ‘Size’ and remove the datePattern it’s creating 5 backups.
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
&nb... |
| 11/22/2006 7:11 PM | Config asp.net 2.0 problem |
| Replies: 0 |
Hi, Please help ! I have written a wrapper to log4net and the config file is not getting loaded. (in steps) a) Created seperate C# Project "MyCompLog4Net" - Added Ref: log4net - Wrapper class, "MyCompLog.cs" to write log - which internally calls Log.Error, Log.Info, Log.Debug (rest we don't need) - In this project, in the file "AssemblyInfo.cs", tried both settings. ... |
| 11/19/2006 4:47 AM | XMLSocketHubReceiver available |
| Replies: 0 |
Hi folks!I am new to this mailing list and I hope that I am right here.I finished a XMLSocketHubReceiver and all I wanted to do here is to ask the developer to add thisreceiver to the log4j package. I am not here to drop my footprint and most likely this will be the oneand only thing I will have done regarding to log4j because I am not a professionell Java developer.I developed the XMLSocketHubRec... |
| 11/19/2006 2:36 AM | RollingSqlAppender |
| Replies: 0 |
FYI, Ayende blogged about a RollingSqlAppender he wrote:http://www.ayende.com/Blog/IntroducingRollingSqlAppender.aspxIts a combination RollingFileAppender and AdoNetAppender. I haven't tried it out or looked at the source code yet. |
| 11/16/2006 9:58 PM | Facade layer / Wrapper ... log4net |
| Replies: 0 |
Hi, I am trying to write a Facade Layer to wrap the log4net to achieve the following: [ We are using asp.net 2.0] a. To log more information b. To include some of the goodies that MS EntLib 2.0 provides c. To enforce size limits d. To log additional info depending on the level e. To write some context info. f. Mainly, we have multiple projects and we want developer to know less about... |
| 11/14/2006 3:28 PM | Detached definition of layout |
| Replies: 6 |
Hello, my log4net config gets to be a bit complicated. I have lot ofappenders, which of them defines the same layout: <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread] %-5level %-35.35logger[%-10.10property{NDC}] - %message%newline" /> </layout&g... |
| 11/14/2006 6:58 AM | Programmatically change logfile name |
| Replies: 2 |
Hi.How can i set the name of the logfile in an application ?Get FileAppender by name and change File property ? How ? (mk) |
| 11/14/2006 6:50 AM | RollingFileAppender & concurrency |
| Replies: 6 |
Hello,
We have a .Net v2 asp.net webservice that uses log4net. Our customers want to run our product in a webgarden (multiple processes running on the same machine). Each process, uses the same web.config, and thus the same RollingFileAppender file name.
Will the service interleave the log calls to the single file correct? (a simple test I did with a console app, running... |
| 11/13/2006 10:04 PM | Public Key Changed!?!?! |
| Replies: 2 |
OK, I have a serious problem with the log4net 1.2.10.0. I am required to usethis version because nhibernate links to (as of NH 1.2.0 Beta 2).Why has the public key changed? I am referencing a variety of assemblieswhich link to older versions of log4net - no problem right, I just use abindingRedirect in the app.config file.Well, the bindingRedirect no longer works since the public key has c... |
| 11/13/2006 4:50 PM | Bug with ADONetAppender + MS Access on .NET 2.0 |
| Replies: 1 |
Hi all,When trying to log into an access db using the AdoNetAdapter with anOleDb connection i get the following error in a VS 2005 (.NET 2.0)project (see bellow). I am logging from log4net sample app ConsoleApp,config file is attached.I have found exactly same question in mailing list archive (06/10/200611:44 AM Subject: Trouble using AdoNetAdapter with .net 2.0 project),but without any work... |
| 11/12/2006 8:35 PM | Repository |
| Replies: 0 |
Hi!I doesn't get the log4net Repository working. Given two minimal C#projects one console exe LoggTest.Main.exe and a libraryLoggTest.Library.dll both having its own App.config file. Bothrepositories is configured to log in different logfiles. I tried anumber of combinations as removing the Repository attribute in theconsole exe. I also get the following error:log4net:ERROR [FileAppender] Unable t... |
| 11/09/2006 1:32 PM | Need for LOG4NET Audit |
| Replies: 1 |
Dear Sir / Madam,
We have problem in log4net audit. I have search on Google and your website but I did not get any good example and document that can help me.
So please kindly send me related example and document as soon as possible.
Regards
Rajani Rawat |
| 11/09/2006 7:17 AM | IObjectRenderer.RenderObject(); what to do with textWriter? |
| Replies: 0 |
I have an implementation of IObjectRenderer that formulates XML for allSystem.Exception objects. I have validated that I have configured therenderer correctly, and my renderer is being loaded at runtime. I havea custom layout and appender that are all working as expected. This isthe only component that doesn't seem to be working.I don't think I'm clear on what to do with the text... |
| 11/08/2006 5:28 AM | NullReferenceException in AppenderSkeleton.get_Name() |
| Replies: 2 |
I had an ASP.NET 1.1 application crash recently. There was anunhandled exception in AppenderSkeleton.get_Name(). I don't think thisis the cause of the application failure but I am hoping it might helpme determine the root cause of the problem.What could cause this exception in this method?System.NullReferenceException: Object reference not set to an instanceof an object. at log4net.App... |
| 11/07/2006 2:30 PM | Audit in LOG4NET |
| Replies: 1 |
Hi,
Could u please tell me how to implement LOG4NET Auditing.
Regards,
Rajani Rawat |
| 11/07/2006 9:29 AM | Possible To Name Log File After Assembly? |
| Replies: 1 |
Dear Community,I was wondering if it is possible to name a log file after an assemblyvia the config file. Here is my config file:--<?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="log4net"type="System.Configuration.... |
| 11/06/2006 3:32 PM | Logging from COM+ |
| Replies: 8 |
Hi,I have a classic asp application which is havingseveral COM+ components.I want to use Log4Net forlogging from this application,is it possible.IsLog4Net supports logging from com+.kindly let me knowas the requirement is urgent.Thank youAshish__________________________________________________________________________________________Sponsored LinkTalk more and pay less. Vonage can save you up to $3... |
| 11/03/2006 3:50 PM | How to implement log4net |
| Replies: 2 |
Hi,
I need auditing (log4net) material.
Regards,
Rajani Rawat
|
| 11/03/2006 2:44 AM | compiling log4net on os x using mono framework |
| Replies: 0 |
Hi - does anyone here have experience with compiling log4net on os x using
the mono framework?
From the documentation it seems possible, though perhaps not trivial.
Thanks in advance for any pointers.
|
| 10/31/2006 9:29 PM | Using different log files for different assemblies |
| Replies: 1 |
Hi,I'm using log4net-1.2.10 with .NET 2.0 to develop a Windows (Forms) application.I have added two file appenders (one for Debug & above; the other forInfo & above). The settings for these are specified in my app.configfile.Everything was working fine, until I needed to add a reference toanother assembly (dll) developed by a colleague. This assembly alsouses log4net for logging, the setti... |
| 10/31/2006 3:11 PM | RollingFileAppender Problem |
| Replies: 0 |
Hi there!
I'm using the following configurations:
+ Win2k SP-4, WinXP SP-2
+ C# .Net 2.0
+ Log4Net.dll 1.2.9.0
The Logger is running for a Win-Service and configured as shown in the xml-snippet of the attachement.
What I want to achive is, that I will get one log-file for each day rolling after 30 days,
so I set the following keys:
<rollingSty... |
| 10/28/2006 8:15 AM | Log4net and ASP (vbscript,COM) |
| Replies: 0 |
Hello,
I'm trying to use log4net in order to log ASP web application (vbsript).
I don't know how to set up it, but I find post in forum http://www.nabble.com/COM-and-VisualBasic-6.0-and-log4net-tf273514.html#a769573
It also didn't work.
Is it possible to log ASP application with log4net, if yes how to set up it.
Thank you very much
Michael |
| 10/17/2006 4:49 PM | what's wrong with my application? |
| Replies: 2 |
I wrote a very simple c# application to try writing to log file, and it doesn’t work. The log stays empty.
Can someone please tell me why?
The application code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using log4net;
using log4net.Appender;
 ... |
| 10/17/2006 2:41 AM | ListView Appender |
| Replies: 2 |
Hello all!I am trying to find out if anyone has written an appender for a ListView orif there is some reason that I shouldn't do so. I currently have anappender for a RichTextBox that I found on the net, so it seemed a fairlylogical progression to go with a ListView. But I didn't know someone haddone this already and found some major pitfall that I hadn't encounteredyet.Thanks,Lee Keel... |
| 10/12/2006 2:29 AM | AllowPartiallyTrustedCallers Attribute |
| Replies: 1 |
HiI have a problem running a web site medium trust with log4net when it is not in the GAC - according to the MS security docs this should be solvable if the AllowPartiallyTrustedCallers attribute is added to the assembly.Any reason for not doing so?Also, how do I tell the nant build to strongly-name an assembly - I've generated my key, but the assembly is still unsigned.RegardsPaul |
| 10/11/2006 1:19 PM | Application Config File |
| Replies: 1 |
Hey,I am using VS.NET 2003 Framework 1.1 with Managed C++ and had some problems with the application configuration file which I wanted to use to configure log4net. The build process never created the <applicationname>.exe.config file from the app.config.As I learned from http://www.codeguru.com/cpp/cpp/cpp_managed/asp/article.php/c4873/this is only automatically done for VB and C# so I added... |
| 10/10/2006 8:55 PM | Release mode compilation of WinService kills debug messages |
| Replies: 1 |
Hi all,I have a somewhat strange problem with Windows service application. The problemis: when I’ve compiled the VS Windows Service project in Release mode all debugmessages with DEBUG level have stopped to output in a log file. I’ve just testthat with normal Windows Forms app and it works fine in Release mode (I can seeall messages of level DEBUG in a log file). Anybody knows what’s going on?Than... |
| 10/05/2006 7:55 PM | Logging is delayed |
| Replies: 0 |
I am new to log4net and setting up log4net, and am experiencing some problemswhen logging to a SQL Server 2005 DB.I have created a button with the following event to test:protected void Button1_Click(object sender, EventArgs e){log4net.Config.XmlConfigurator.Configure();log.Info("Hi..Test Log Message at "+DateTime.Now.ToString());}When I press the button for the first time, nothing happens in th... |
| 10/02/2006 10:19 PM | AdoNetAppender using OdbcConnection Class |
| Replies: 0 |
I am currently using v1.2.9.0 in a dll to write to a SQL database from aconfig file on the 2.0 .NET Framework.I have successfully set up my config file to write directly to SQL withSystem.Data.SqlClient.SqlConnection. I need to be able to support multipledatabase types, so I am using and ODBC connection to my database. I amhaving problems configuring the commandText node to match the parameterspro... |
| 09/29/2006 7:50 AM | race condition using RollingFileAppender with multiple processes? |
| Replies: 2 |
Hi.I apologize in advance if I have missed the answer to this question in my searches on the log4net website and the internet in general. I am using log4net 1.2.9 to generate logs on an ASP.NET web client application. This app is running on IIS with 20 processes. I am seeing what I believe is a race condition when the logs roll over at the hour mark. I can see the new log a... |
| 09/29/2006 3:30 AM | Retrieving log4net error conditions |
| Replies: 1 |
Hello list, I am wondering if there is a way to recieve an error messages from log4net 1.2.10 if it is unable to write to a log file. Reading through the release faq ( http://logging.apache.org/log4net/release/faq.html) I see that exceptions should not be thrown, however is there some method I can call to see what the last error(if any) log4net encountered when writing to the log... |
| 09/27/2006 5:45 AM | Log user on thread |
| Replies: 0 |
How can I have the current user fromSystem.Threading.Thread.CurrentPrincipal.Identity.Name automatically writtento my log file?--View this message in context: http://www.nabble.com/Log-user-on-thread-tf2341410.html#a6516582Sent from the Log4net - Users mailing list archive at Nabble.com. |
| 09/27/2006 2:28 AM | Turn off logging for a specific event only |
| Replies: 7 |
Is it possible to turn off the logging for a specific event? I would like to turn of the logging when the code hits a particular method and reset the logging to its original value which is "DEBUG" while exiting that method. Is it possible to accomplish this? If so, please provide me some sample code on how to achieve this. My code is in c#.net and uses log4net version 1.2.10
Ple... |
| 09/26/2006 10:21 PM | AdoNetAppender Multiple Columns |
| Replies: 1 |
I am wanting to log the date, a message as well as the username to thedatabase with log4net. However, it appears that the only value that I canexplicitly indicate to log for log4net is the message. I do not want to haveto place the username as well as other information all within the messagestring. How could I set up log4net to log to the database and have th... |
| 09/21/2006 8:02 PM | Are there ConfigureAndWatch events? |
| Replies: 0 |
Hi there,My applications configure and watch a configuration file and alsoprogrammatically add another appender to display log messages within thegui.Is there an event available for when the watched file is reloaded sothat I can programmatically add the gui appender again?Thanks,Duncan |
| 09/20/2006 10:43 PM | Filtering messages by thread |
| Replies: 0 |
I'm trying to get filtering working so that a given appender only accepts messages from a given thread.
I'm creating the appenders at runtime based on an external event. I would like that appender to then only accept messages from the thread it was created on.
Is this possible without creating my own Filter? I'm thinking I could use a PropertyFilter... |
| 09/18/2006 8:54 PM | RollingFileAppender. |
| Replies: 0 |
Does anybody know if I can call the flush() method on a RollingFileAppender? If not, is there anything similar to the flush() method that I can use in rolling file appender?
Thanks
|
| 09/16/2006 4:20 AM | ConfigureAndWatch Performance Impact |
| Replies: 1 |
Does anyone have any information regarding the performance impact ofusing the ConfigureAndWatch to monitor possible changes to the configfile?Thank you,Susan |
| 09/15/2006 9:57 PM | Different Log Level per Logger per Appender? |
| Replies: 0 |
I am curious if log4net supports the concept of having the same appenderassociated with more than one Logger, but at different levels for eachLogger.Example:Lets say I have Logger L1, and Logger L2Lets say I have RollingFileAppender A1, and ConsoleAppender A2Is it possible to configure log4net such thatL1 and L2 both send debug or greater to A2L1 sends error or greater to A1L2 sends fatal or great... |
| 09/15/2006 9:52 PM | log4net 1.2.10 overwriting instead of rolling over |
| Replies: 4 |
I just upgraded to log4net 1.2.10 from 1.2.9 (to fix that exceptionmessage I wrote about last week). And I'm having a big problem withthe log files not rolling over at maximumFileSize and instead justoverwriting itself!I have this running on a asp.net app on 2 different web servers(win2003/iis6). I had both files open with Tail for windows and thiswas not a problem in 1.2.9, the files would proper... |
| 09/14/2006 10:10 AM | Programmatic configuration |
| Replies: 5 |
Hi,I am using log4net in a C# console application. The requirementsspecify that I retrieve the error log file and debug log file from theregistry. Once I have done that I then need to configure my applicationto log to those files (for all classes).How do I do this? I can't find a configuration example for programmaticconfiguration, but it is mentioned in the documentation and exa... |
| 09/14/2006 1:07 AM | getting the latest version of log4net 1.2.10 |
| Replies: 4 |
Hello,
I currently have 1.2.9 version and want to upgrade to 1.2.10 but I don't see any steps regarding the upgrade on the website. Here is the list of questions that I have
Should I uninstall the older version first? If so, how do I uninstall it?
Or, can I replace the existing version 1.2.9 with the newer 1.2.10 version?
Can I have both versions on the same machine but in... |
| 09/13/2006 11:15 PM | Using Log4Net with Oracle |
| Replies: 2 |
As our application is distributed, I am trying to log messages to ourOracle database. In the app.config, I have the following:<appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender" <bufferSize value="1" /> <connectionTypevalue="Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess... |
| 09/13/2006 7:50 PM | Accessing all appenders / layouts |
| Replies: 2 |
Hello,Is there any way to access all appenders and layouts in theconfiguration file (even those that are not associated to anylogger?).I'm using log4net 1.2.10.Thank you.Best Regards,--Gonçalo Luiz |
| 09/12/2006 5:23 AM | logging (or not) specific classes, through the config |
| Replies: 3 |
Is there a way to log (or not) specific classes even though they have a logger configured?
I want the appenders that I use to be at the debug level but I am not interested in messages from this particular class.
There should be a way to do this from the App Config file, but I have not found it…
|
| 09/12/2006 1:08 AM | Runtime configurations |
| Replies: 2 |
Hello,I'd like to configure my logging infrastructure without touching the.xml that will only be the "default" values for the system.For instance I'd like to change the log level of a given Logger, or toadd/remove appenders to a given Logger.Also, I'd like to change layouts and appenders configurations in runtime too.I think I can manage Layouts and Appenders, since they expose publicproperties th... |
| 09/07/2006 11:03 PM | Windows Service console output |
| Replies: 4 |
Log4net 114322Platform .Net framework 1.1 VS 2003I have a windows service and I am logging events to a file and a consoleappender. Log4net is watching the app config file. (using an attribute)The File appenders work fine but I get no events in the output window.(The console appender works fine when I debug an application. If I runmy service like an exe (by creating a new instance of the service an... |
| 09/05/2006 9:43 PM | Uncaught exception: System.IndexOutOfRangeException |
| Replies: 4 |
I'm using log4net 1.2.9 and got these uncaught exceptions thrown frommy application causing it to crash this past weekend:System.IndexOutOfRangeException: Probable I/O race condition detectedwhile copying memory.I am using log4net with an asp.net 1.1 web service, and am writingentries to the log for every request. This is on a windows 2003server, using iis6, and web gardening is turned on, so mult... |
| 09/01/2006 4:19 PM | Appender stops if network error |
| Replies: 1 |
HiIs there a way of handling a situation with a RollingFileAppender thatstops logging if there is a network error.I had a situation where the application was logging to a network diskand at some time the network was bad.The logging is reinitialized at midnight, but I wounder if there existsany Exception handling that could make the appender get reinitialized atonce if an error occurs./Richard-----... |
| 09/01/2006 3:41 PM | Using log4net with web services |
| Replies: 2 |
HiI would like to use log4net to log from a web service (asmx file).I am quite new to web services and .NET but I've uses log4j for longyears before.Could anyone give me some advice about how integrate log4net with webservices ? Where/how to initialize it ? Where/how to configure it?Is there something specific to web services, i.e its stateless behavior?Best regardsAdriano Labate |
| 09/01/2006 4:58 AM | How to pass data to custom ADONetAppender parameters? |
| Replies: 6 |
Hello,I am trying to find a way to have my own custom parameters that I would logto a SQL Server Database. I am a newbie to this, so I got the"out-of-the-box" implementation of logging exception, message, dates to SQLServer, however, I want to pass my own variables the database. So, mytable would fields would have something like:Table name = CustonStuffLog Fields:MyCustomMessag... |
| 08/28/2006 6:03 PM | Duplicate entry more info |
| Replies: 0 |
Dear all,I am sorry to post it once more. My old problem with duplicate entries isstill not solved.But I had to shift the debugging because of some urgentwork.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 noidea, what the reason could be.I thank you for any help for any help. &... |
| 08/17/2006 10:23 AM | simulating tail -f |
| Replies: 2 |
Greetings,I am writing the logs to log files using File appenders (2 different logs, one for info and one for debug).Is it possible to access these logs and show them within my application's Interface upon clicking a "view current logs" button?Basically I would like to simulate "tail -f" from within the application.ThanksSaurabh |
| 08/17/2006 12:13 AM | FW: Problem logging in class library |
| Replies: 5 |
Hi Everyone
I am new to log4net and I am facing problems with it. In my .Net solution I have a class library project and a ASP.net project. I want to create a Logger class which is like a wrapper in the class library and have all the other Webservices or ASP.net projects in the solution access that.
This is how I use log4net in the Class library
AssemblyInfo.cs
[assembly : log4net.Co... |
| 08/10/2006 5:40 AM | Unrecognized configuration section log4net? |
| Replies: 1 |
I'm writing a Windows service using .NET 2.0In my app.config, I have a <log4net> section that sets all log4net settings.My app launches, and starts to run perfectly. All logging worksperfectly and is properly configured.Then when my code hits:FtpWebRequest.Create(uri)I get an exception with this messager: "Unrecognized configurationsection log4net"Obviously, log4net, isn't part of the offici... |
| 08/10/2006 12:12 AM | Why ThreadId and not Hash Code? |
| Replies: 2 |
From the .NET SDK:
GetHashCode provides identification for managed threads. For the lifetime of your thread, it will not collide with the value from any other thread, regardless of the application domain from which you obtain the value.
Note An operating-system ThreadId has no fixed relationship to a managed thread, because an unmanaged host can control the relations... |
| 08/08/2006 4:38 PM | Log4Net patches... |
| Replies: 2 |
Hello,I'm just following the instructions at the bottom of this page -(http://logging.apache.org/log4net/contributing.html#svn-anon) which says:> however it may also be worth mailing the log4net-dev list to encourage the> project committers to apply your patch, or at least find out when they may> do so.So that is exactly what I'm doing! ;) I'm the lead on Subtext(http://subtextproje... |
| 08/05/2006 5:39 AM | XmlConfiguratorAttribute and absolute path? |
| Replies: 0 |
I have an assembly which is a plugin that gets loaded by a hostapplication. Its application base directory as returned byAppDomain.CurrentDomain.BaseDirectory is nowhere near where I must putmy assembly. Here's what I am trying to do. Have my <myaseembly.dll>.log4net located in the same folder as my assembly.It doesn't seem to be that there is a way to specify an absolute p... |
| 08/04/2006 8:32 PM | Best way for inserting additional message in log? |
| Replies: 2 |
HiWhat I'm trying to do is to include new field (column) in Sql DB, with some additional business related information.I need this optional info (parameter) in NEW column for fastest browsing and searching.Idea is to call log from application with new parameter: log.Info("My message","Some business data");// or log.Info("My message", ex, "Some business data"); // with ExceptionI'm already using cus... |
| 08/03/2006 9:27 PM | configurable file purging and logging to two files |
| Replies: 1 |
1) Is there a configuration option for having files, say older than 14 days, purged from the hard drive?
2) I am logging particular events to a separate file and have that working. The problem arises from the fact that these events are logged both to my main log file and also to the separate file. What in my configuration needs some tweaking?
<log4net> <... |
| 08/03/2006 9:14 PM | Why is LogManager not inheritable? |
| Replies: 2 |
I implemented a custom LogManger to allow a couple additional levels. My concern going forward is that I will constantly have to determine what new code is not present in my LogManager vs. the standard Log4Net LogManager.
Insight?
Thanks,
Rich
|
| 08/03/2006 5:45 AM | Default logging when config not present? |
| Replies: 2 |
I thought at one point I had read somewhere, perhaps in the Log4J docs, that when the logging file was not present, it would use a default logging configuration going to the standard output or console.
I have a command line program and when the app.config file for it is not present, I don't see any console logging.
Advice?
Thanks,
Rich
|
| 08/03/2006 5:43 AM | Calling appenders not threaded? |
| Replies: 1 |
Am I correct that appenders are not called (doAppend) as individual threads? If so, why not?
Thanks,
Rich |
| 07/28/2006 5:18 AM | Logging Level between Info and Debug? |
| Replies: 2 |
Hi, I need a logging level that is between Info and Debug. For example, I have a process that runs and I need to log the details of the process using Info (ex. What records were updated for Sarbanes Oxley requirements). However, I also need to log summary information such as how many records were updated, how many of a particular action were taken during ... |
| 07/27/2006 1:28 AM | log file for each session |
| Replies: 3 |
I am learning log4net and want to know how can I config it to create log filefor each web session. say the log file name would be log{sessionid}.logCan someone give some example?ThanksVictor--View this message in context: http://www.nabble.com/log-file-for-each-session-tf2005101.html#a5507552Sent from the Log4net - Users forum at Nabble.com. |
| 07/26/2006 5:42 PM | One log per assembly |
| Replies: 0 |
Hi,I have 2 problems :- First, I don't know how can have one file per assembly. All my logs are mixed in the first log file called. (same call pocess perhaps) Is it possible to do that?- Then, I call an assembly from Vb6 application. I want to log form my assembly but it doesn't work. (It works well when I call it from a .Net application). Have you got an idea?Thanks a lotVincent |
| 07/26/2006 5:21 PM | mono and coloredconsoleappender |
| Replies: 3 |
Hi,I am trying to compile my projects into mono and I have one small problem.error CS0234: The type or namespace name `ColoredConsoleAppender' doesnot exist in the namespace `log4net.Appender'. Are you missing anassembly reference?Compilation failed: 1 error(s), 0 warningsIf I switch to ConsoleAppender there is no errors.I am using the mono-2.0 dll in the log4net package.- Morten |
| 07/25/2006 11:27 AM | AppenderSkeleton onClose - interop object not accessible |
| Replies: 0 |
Hi,
I am implementing Lotus Notes mail and Notes Log appenders using AppenderSkeleton with .Net 2.0
The appender loads fine, the append method is functioning, but when onClose is called, my reference to the Lotus Domino com object (interop) is invalid with all properties of the object I am referencing showing the following error:
COM object that has been separated f... |
| 07/25/2006 4:11 AM | Logging comments |
| Replies: 0 |
I thought of a really cool idea a long time ago, and I wanted to see ifanyone has thought of it, or even implemented it.The problem: In code, you often write comments, and you often write logmessages. You may or may not write them about the same thing. In somecases, you might even have a comment, and then a message that logs it.The solution: What if you had a script that would parse th... |
| 07/25/2006 1:52 AM | Log4net log machine name adonetappender: |
| Replies: 1 |
Hi
I am trying to log machine name via log4net adonet appender. I want to access the machine name via the log4net pattern layout. Is there any property defined and accessible for logging machine name by adding it as an additional parameter to the AdoNetAppender like... "%p{machine}".
Thanks, Kumar |
| 07/23/2006 9:12 PM | Performance #'s for Log4Net and some ideas about how they can be improved |
| Replies: 2 |
I've written some small sample code because I wanted to see how bad theperformance hit was between if (log.IsDebugEnabled) log.Debug(Message);and&nb... |
| 07/23/2006 7:49 PM | Log4net bug when using ThreadContext |
| Replies: 3 |
The following code is failing, even though it looks like it can work:
MemoryAppender appender = new MemoryAppender();
ILog logger = LogManager.GetLogger("foo");
BasicConfigurator.Configure(appender);
using (log4net.ThreadContext.Stacks["1"].Push(null))
{
logger.Error("Should work");
}
Debug.Assert(appender.GetEvents().Length != 0); |
| 07/18/2006 7:28 PM | Error: Unable to find the specified file (RollingLogFileAppender) |
| Replies: 3 |
Hi,
After a long time processing, the log4net fail on writing the log file.
Here it is the error:
Exception InformationSystem.IO.FileNotFoundException: Unable to find the specified file. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.__Error.WinIOError() at System.IO.FileInfo.MoveTo (String destFileName) at log4n... |
| 07/18/2006 7:20 AM | RollingFileAppender Problem |
| Replies: 0 |
Folks, I am having a problem in Rolling file appender, I want to generate the log file on daily basis and want the file name should be appended with the current date, plz plz help me out to do that, I have tried alot and searched alot, but nothing happened, plz need experts guidence. below is my config file which I am trying to generate ... |
| 07/14/2006 9:29 PM | Appenders and AppDomains |
| Replies: 5 |
HiIs it possible to have one appender for all app domains in a process?Each app domain has its own appender, but I also want a global appenderfor all domains.- Morten |
| 07/12/2006 12:51 AM | Why each message printed 2 times? |
| Replies: 6 |
Dear all,With minimal lock each message is printed into a log file 2 times.i.e.[11 Jul 2006 18:43:10,663] DEBUG Log1 - pi is nothing[11 Jul 2006 18:43:10,663] DEBUG Log1 - pi is nothingWith exclusive lock works as expected.Any ideas why?m_LockingModel = new FileAppender.MinimalLock();m_FileAppender = new FileAppender();m_FileAppender.Layout = new log4net.Layout.PatternLayout("[%date{dd... |
| 07/10/2006 10:49 PM | Filter chaining |
| Replies: 1 |
------------------------------------------------------------------------------------------------
....
<appender name="appenderName"
type="log4net.Appender.FileAppender">
<param name="File" value="log-data\\my.log" />
<param name="AppendToFile" value="true" />
<layout type="log4net.Layout.PatternLayout">
&l... |
| 07/08/2006 12:08 AM | dispatching log to multiple file based on class |
| Replies: 1 |
I retry to submit my question:I need to create or configure existing log4net library so that I'll be ableto have a log file for each class I decide to log.So briefly: one log-file for each class. Is it possible with log4net ?If yes how?For example suppose I have 2 classes:class C1 { protected static readonly ILog log = LogManager.GetLogger(typeof(C1 )); ..... |
| 07/07/2006 3:34 AM | Whitespace in Messages? |
| Replies: 2 |
Hi,I am trying to print some log messages containing spaces to a RollingLogFileAppender, and the white space is getting compacted. Basically, I'm logging a string by doing something like this in C#:string str = String.Format("{0,-20} {1, -10}", string1, string2);The log output has only one space between the two strings, rather than being padded out to 20 spaces as I was expecting. (I'm trying to p... |
| 07/06/2006 6:04 PM | One log file per class. Is it a possible behaviour? |
| Replies: 0 |
I need to create and manage a log system thathas one file for each class logged, with the possibilityto have the following log-file-name pattern:<full-namespace-class-name>.<yyyymmdd>.logFor example suppose I have 2 classes:class C1 { protected static readonly ILog log = LogManager.GetLogger(typeof(C1 )); ... log.Debug(".... this wr... |
| 07/04/2006 9:50 PM | How to make assembly directive in ASP.NET site. |
| Replies: 1 |
Where can I put [assembly: log4net.Config.XmlConfigurator(Watch = true)]in an ASP.NET webpage? Ideally I'd like to specify this in some placelike the Global.asax so that all my sites will be configured. There isa <%Assembly %> directive but it only has the attributes src and name soI'm not sure how to declare it. |
| 07/03/2006 9:46 AM | Switch-on the logger by the namspace |
| Replies: 0 |
My sample project is configured like this: namespace Com; namespace Com.Foo; namespace Com.Foo.Folder; namespace Com.Other; namespace Com.Other.Folder; when i switch the Com in the config file to "Level=OFF". Then should be all Logs off. when i switsch the Com, Com.Foo, Com.Foo.Folder to "Level=DEBUG" then the log of this namespaces schould be logged. Now when i switch the Com.Foo to ... |
| 07/01/2006 8:41 AM | XML configuration file - extracting elements |
| Replies: 2 |
Is there a way to extract elements from log4net’s XML configuration file, without reopening the file and parsing it?
For example, I’d like to get a certain appender’s “file” property, so that I can create the logging directory every time logging is done. I need to do this to support runtime changes in the directory specification in config xml. Since the log4net assembly is designed to w... |
| 06/29/2006 10:27 PM | Config not honoring appender |
| Replies: 5 |
Here is my config. For some reason foo.bar writes to appender A1. Whathave I done wrong?<log4net> <!-- A1 is set to be a ConsoleAppender --> <appender name="FileAppender"  ... |
| 06/29/2006 2:50 PM | ASP .NET 2.0 Security error - Config problems - Any ideas? |
| Replies: 6 |
Hi there
I'm using log4net with an ASP .NET 2.0 application. On my local machine all works well, but when deployed to an ISP, there are no logs.
After much debugging, I discovered that log4net was failing on a "Security Error" (see error message below) – i.e., the server's trust level is Medium and blocks log4net from reading the config data. (When I used a separate log4net.con... |
| 06/29/2006 8:44 AM | log4net logging not working |
| Replies: 2 |
Every kind of log4net logging I’ve tried fails to work.
For example, even attempting basic logging in a C# web app results in no console output:
BasicConfigurator.Configure();
&nbs... |
| 06/26/2006 10:22 PM | Format of the NDC |
| Replies: 3 |
I was delighted by the NDC feature of log4net/log4j as my own tracing framework had the same feature. Its only when I wished to add things like the Smtp and Ado appenders that I choose to switch to ready made library.
My question is, how do you format your NDC messages to be easily readable? It seems that by default, different levels of the context stack are not distinguished and allowed ... |
| 06/26/2006 10:16 PM | When to log, when to throw - Help! |
| Replies: 12 |
Hi all,
I don't think I have grasped something basic about using error handling as I am having trouble integrating exceptions with logging. The goal of my logging is at high levels to be comprehensible to a non software engineer and provide sufficient information to fix any problem that has occurred. Exceptions are the default error handling of .Net and almost every object can throw ... |
| 06/23/2006 8:06 AM | Ideas for Log4net presentation |
| Replies: 3 |
Does anyone have topics they would enjoy seeing in a log4netpresentation (spoken presentation with slides and code walk-though)?Some ideas:- What do you find confusing about log4net?- What things were hard to figure out when you first started usinglog4net?- What things are still hard to figure out when using log4net?etc.Does anyone have slides about log4net that are available on-line?Thanks,Ron |
| 06/22/2006 8:09 AM | Log4net Stops Logging |
| Replies: 1 |
We have log4net using SQL Server as Appender for logging. We ran load tests using LoadRunner that logs using log4net through Business objects. Two tests were done. Results were these….
In the first test logging stopped after 11 hours into the test though the test continued for 24 hours.
In the second test, we raised the size of the Logging database to 5 GB to remove... |
| 06/22/2006 2:37 AM | ReconnectOnError Syntax |
| Replies: 1 |
Log4net Users:
Can anyone clarify the exact syntax for the Appender for the attribute “Reconnectonerror”. The two syntaxes that I see are …
1.
<param name="reconnectonerror" value="true" />
2.
<reconnectonerror value="true" />
Thanks
Rama K.
|
| 06/22/2006 1:03 AM | RollingFileAppender file name |
| Replies: 4 |
Is it possible to use "Conversion Pattern" in the file name of theRollingFileAppender? For example, I want the logfile name like:hostname.appname.log. So if the same application runs at differentmachine, it will have different logfile.How can I setup this in config file?I tried following:<param name="File" value="C:\\Logfiles\\%property{log4net:HostName}.Test.log" />It didn't work. Internal ... |
| 06/21/2006 11:44 PM | Prevent logging messages that contain a string |
| Replies: 1 |
I see that the StringMatchFilter logs messages that match StringToMatch or RegexToMatch properties, but is there a way to NOT log messages that match? Something like a DenyStringMatchFilter, perhaps?
The rule would be something like this: Log all messages _except_ those that match the filter.
|
| 06/21/2006 11:33 PM | Disable |
| Replies: 2 |
Other than renaming my XML configuration file is there a good line todisable all logging ? |
| 06/21/2006 11:28 PM | Customize the exception output |
| Replies: 4 |
Hi,
I've had a request from the developers at my company to modify the way in which log4net outputs exceptions to the log. This would need to take effect in my EventLogAppender and AdoNetAppender. Will I need to create my own custom class similar to ExceptionLayout or a custom class similar to ExceptionPatternConverter? How can I specify this change to the EventLogAppe... |
| 06/21/2006 7:31 PM | maxSizeRollBackups property of Rolling File Appender |
| Replies: 1 |
I am using Rolling File Appender provided by ““log4net-1.2.9-beta” version, for writing the logged messages into a local file.I found that <maxSizeRollBackups> is supported only when "RollingStyle" property is set to "Size". If "RollingStyle" property is set to “RollingMode.Date” the property “maxSizeRollBackups” does not work.My Requirement is to Limit the number of back up copies whatever ... |
| 06/20/2006 11:08 PM | different application read some config file |
| Replies: 4 |
I have couple programs that run on different servers. Each program uses thesame AdoNetAppender. Right now I have to have the AdoNetAppender config foreach program, though the AdoNetAppender config is exactly same for eachprogram.Is it possible to just put one copy of AdoNetAppender config in a centralplace and each program goes there to get the config? If it's possible, I canjust put the config in... |
| 06/20/2006 5:08 PM | Where to load configuration |
| Replies: 2 |
Hi people :-)I have a site that creates an object that retreives data. I have aservice that runs that goes and gets data from various sources and putsthem into files that this data retriever object then accesses. i.e. theservice and the retriever are in no way related. However they are allpart of my solution in Visual Studio 2005. As is my website.I'm a bit unsure where to put my... |
| 06/17/2006 5:18 AM | Log4Net machine based configuration |
| Replies: 2 |
Hi,I am wondering if any thought has been given to coding log4net in such a way that the configuration settings can be on a per-machine basis within a single .config file? Internally, my company has created a framework that localizes all application settings so that the production, staging, integration and developer workstations are all running different settings. The settings are all ... |
| 06/15/2006 11:29 PM | Are there any open source viewers? |
| Replies: 3 |
Are there any open source viewers that will work with either thelog4net.Layout.XmlLayout or XmlLayoutSchemaLog4j? |
| 06/15/2006 8:53 AM | FeedAppender |
| Replies: 0 |
Anton Fajardo offered to write an RSS Appender almost a year ago.Other than that I cannot find mention of such development.Before I get started coding it - yes I believe it would be useful - Ithought I would verify this does not duplicate another effort.--Rjae Eastonblog: http://applanet.com/percs/wiki: http://applanet.com/wiki/ |
| 06/14/2006 12:13 AM | new public key for 1.2.10? |
| Replies: 4 |
According to discussion at http://forum.springframework.net/showthread.php?t=470, the public key has changed from version 1.2.9 to 1.2.10.Was this by design? |
| 06/12/2006 9:53 PM | Problems with separate logfiles at multiple layers of DLLs |
| Replies: 0 |
I've got a problem with my relatively complex service-based application.Here is the structure and desired logging results of the entire application:1. A service watches serial port traffic, builds message responses, andchanges data in a DLL.The service should maintain its own [shared] log4net log.2. The DLL is the main database for the service. I want the DLL to writeto the same ... |
| 06/12/2006 11:16 AM | Introducing NetLogClient 2.0 (Ripsaw) |
| Replies: 6 |
I hope this isn't off-topic; I think it is relevant, if not, please excuse me.NetLogClient 2.0 beta 3 has just been released. It is an open source UDP log event viewer written in C# 2.0. This application should be suitable for use with Apache's log4j or log4net logging frameworks. (log4net must be version 1.2.10 or higher).Any feedback on it would be most appreciated.... |
| 06/10/2006 5:44 PM | Trouble using AdoNetAdapter with .net 2.0 project |
| Replies: 5 |
Hi all,When trying to log into an access db using the AdoNetAdapter with an OleDbconnection i get the following error in a VS 2005 (.NET 2.0) project.Please take note that the exact same project with the same configurationworks fine under .NET 1.1 (VS 2003).A first chance exception of type'System.Runtime.InteropServices.InvalidComObjectException' occurred inSystem.Data.dlllog4net:ERROR [AdoN... |
| 06/10/2006 2:30 AM | OutputDebugStringAppender w/ VS2005 |
| Replies: 1 |
I am writing a windows EXE application and trying to use theOutputDebugStringAppender to get a dump in the output window of VS2005with no luck. Here is the app.config:------------------------- <log4net> <!-- Define some output appenders --> <appender name="RollingLogFileAppender"type="log4net.Appender.RollingFileAppender"> &nbs... |
| 06/08/2006 9:05 AM | how to set property for application level |
| Replies: 5 |
How can I set a property in application level so that all logs produced fromthat application will have this property in log file, including all logsproduced from other assemblies used by this application?For example I want to all my log has an property "appname" to stored thevalue of application name. I tried to set an application name:ThreadContext.Properties["appname"] = "App1";This doesn't work... |
| 06/08/2006 6:04 AM | Logging Thread Context Properties |
| Replies: 3 |
I must be missing something here… I’m trying to setup a thread property in my background thread such that my appender can inspect the property when an event is logged:
The thread does this:
log4net.ThreadContext.Properties["ThreadTaskDescription"] = “<some string>”;
log.Info(“Some message”);
In the appender, when I look at the Properties property of the ... |
| 06/08/2006 6:02 AM | problems with windows service |
| Replies: 2 |
Hello,I have created a windows service, installed it to use the (at first) thelocal system admin account, then the local system account. I haveverified that I have the necessary permissions (by simply creating afile & writing to it), but log4net is showing Is...Enabled = false onall levels.my config looks like this:<configuration> <configSections>  ... |
| 06/02/2006 5:04 AM | NDC and MDC fields logged as (null) |
| Replies: 12 |
I am using the 1.2.10. The NDC and MDC fields are logged in file as (null)if they are no value. Are they supposed to just log empty string if thereare no values?Thanks.___________________________________________________________Sent by ePrompter, the premier email notification software.Free download at http://www.ePrompter.com._________________________________________________________________Express... |
| 05/31/2006 12:07 AM | Compress & Delete old logs |
| Replies: 3 |
Is there a way with the rollingfile appender to have it compressitself as it is rolling to the next file? I would name my logs bydate, and would like the old files to compress (zip, cab, some formatreadable without extra installs) as a new file is being created.Also, is it possible to have a max number of files saved? We wouldlike to only keep the last x days of logs.So day to day the ... |
| 05/29/2006 6:15 PM | Re: RE: LoggerMatchFilter question |
| Replies: 1 |
Hi Nicko,Thanks.I know and tried it. But it doesn't work and I don't know why. I tried all Filters from log4net and my own one, started my real or test app with and configured log4net. Then I looked into the lo4net root logger and it's appenders (via Quick Watch) and all filters are in the filter chain of my RollingLogFileAppender, except log4net's LoggerMatchFilter and my own one. Either if my ow... |
| 05/27/2006 12:58 AM | Best Method For Temporary Appender |
| Replies: 1 |
Hi all-I've been successful using log4net in a fairly conventional manner for a Windows Mobile 5.0 project (e.g., using XmlConfigurator with both an AdoNetAppender and a FileAppender). However, now I would like to use log4net to output filtered log messages to a startup screen with a TextBox control. The key issue here is that the startup screen is temporary--it will only be displayed for ~30 seco... |
| 05/24/2006 10:56 PM | Custom level usage |
| Replies: 3 |
I am using the version 1.2.10. I am not quite sure how to use the customlevel. In the previous email I knew that I have to define a custom level inconfig file as follows:<level> <name value="ACTIVITY" /> <value value="40000" /></level>I define a log in my class as follows:protected static readonly ILog log =LogManager.GetLogger(MethodBase.GetCurrentMethod().Decl... |
| 05/22/2006 10:49 PM | CF 2.0 Compilation?? |
| Replies: 2 |
Hi all,
I need to compile log4net 1.2.10 for the .Net 2.0 Compact Framework (unless the binary is available online and I just didn't see it).
Are the correct conditional compilation symbols: "NET;NET_1_0" or are they different for the compact framework?
TIA,
Jon |
| 05/22/2006 9:35 PM | RE: AdoNetAppender: logging via stored proc: |
| Replies: 1 |
Hi,I am trying to log to database using stored proc instead of the inserttext in the config file...my config file adonet appender is asfollows...<appender name="AdoNetAppender_Oracle"type="log4net.Appender.ADONetAppender"> <connectionTypevalue="System.Data.OracleClient.OracleConnection,System.Data.OracleC... |
| 05/19/2006 3:05 PM | Non Buffering SMTP Appender |
| Replies: 2 |
Hi,I'm using log4net 1.2.10.0 and I'm encoutering the problem that the SMTP Appender does not buffer. I receive an e-mail for every log message. This is the appenders configuration:<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender"> <to value="mail@domain.de" /> <from value="otherMail@domain.de" /> <subject value="Error message" /> &l... |
| 05/18/2006 11:02 PM | AdoNetAppender: |
| Replies: 3 |
Hi
I am trying to log messages to Oracle 9i database table 'Log". I am getting error while initializing AdoNetAppender…following is the log…
log4net:ERROR DOMConfigurator: Could not create Appender [AdoNetAppender_Oracle] of type [log4net.Appender.AdoNetAppender]. Reported error follows.
log4net:ERROR DOMConfigurator: Could not create Appender [AdoNetAppender_Oracle] of type [log4net.Appende... |
| 05/18/2006 4:46 PM | Enabling an appender at run time |
| Replies: 1 |
In my library's log4net setup I have two RollingFileAppenders enabled bydefault. If the user logs on to a database (depends on the application),I want to enable additional AdoNetAppenders with connectionstringspointing to the database the user is logged on to (multiple choices).I believe I have three options (?)1. Use a XML file for my RollingFileAppenders, dynamically addingAdoNetAppenders at run... |
| 05/17/2006 7:34 PM | LoggerMatchFilter question |
| Replies: 1 |
Hello.I would log messages from all types of a specific module (e. g. caching) toan extra appender, lets say to a TraceAppender. "Module" means that theclasses functionalities are related to one topic, but they are in differentnamespaces and possibly different assemblies. So I thought I could use theLoggerMatchFilter for this, but it does not work because the filter uses thestring.StartsWith() met... |
| 05/13/2006 4:06 AM | AppenderSkeleton not thread safe |
| Replies: 1 |
Since the AppenderSkeleton class is not thread-safe (per the SDKreference), none of the appenders are thread-safe - even ones likeEventLogAppender.According to Nicko Cadell,> How log4net implements this with regards to individual appenders isnot> really important. The docs for the RollingFileAppender are correct,the> members of the type are not thread safe, but this is not relevantunless&... |
| 05/12/2006 6:24 PM | Permissioning |
| Replies: 1 |
Hello,I am getting the following error when trying to open a logfile on alocal drive with plenty of disk space in a folder that exists. The filedoes not currently exist."Additional information: Request for the permission of type'System.Security.Permissions.FileIOPermission, mscorlib,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'failed."Can anyone point me in the direction... |
| 05/11/2006 10:44 AM | Minor documentation issues |
| Replies: 0 |
Hello,The introduction makes no mention of .NET 2.0 supporthttp://logging.apache.org/log4net/release/manual/introduction.html#frameworksWhereas it is mentioned as being supported herehttp://logging.apache.org/log4net/release/framework-support.htmlAlso, a 404 is being generated for the "Example Appender Configuration" linkhttp://logging.apache.org/log4net/release/manual/configuration.html#appenders... |
| 05/11/2006 5:55 AM | Assembly Redirect Between 1.2.9.0 and 1.2.10.0 |
| Replies: 0 |
Hi, I'm using Spring.Net (log4net version 1.2.9.0) and using log4net 1.2.10.0 for the application that I'm writing.I'm trying to use the runtime element to change the assembly binding to the new version of log4net.However, I noticed that the publicKeyToken has changed between the two versions. Is it even possible to perform a binding redirect if the public key token is different between the ... |
| 05/10/2006 2:50 AM | Problems logging |
| Replies: 2 |
I have two applications that use log4net (1.2.9.0) and both are configured the exact same way. Yesterday, one of the applications suddenly stopped logging. A trace of the two apps revealed the following:
App One (Does not work)
log4net: log4net assembly [log4net, Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905]. Loaded from [c:\windows\microsof... |
| 05/10/2006 2:01 AM | how to get host name? |
| Replies: 4 |
I am using AdoNetAppender. I want to log the name of the machine thatis running the application.I tried following but doesn't work:<parameter> <parameterName value="@p_ServerName" /> <dbType value="String" /> <size value="50" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%property{log4net:HostName}" />&... |
| 05/06/2006 6:19 AM | Log4net Fails to Log |
| Replies: 5 |
Hi Log4net Support team:
We are trying to log into a SQL server database through log4net. Attached is the code file where log4net is called to do the logging.
We are doing a load test with multiple threads of the object of a class that uses the attached class/method.
Logging by log4net just stops randomly sometimes after 3 minutes - 8 minutes. ... |
| 05/06/2006 2:18 AM | couple questions |
| Replies: 2 |
I am pretty new to log4net, just started using it weeks ago. It works great.I have a couple questions:1. AdoNetAppender: all examples I could find are using insert statementwhich is not possible in my case, could someone point me some examples thatusing stored-procedures?2. custom level: custom level is supported in new release but I stillconfused in how to use it. for example if I want to add a T... |
| 05/05/2006 1:35 AM | Rolling doesn't work based on size |
| Replies: 4 |
RollingLogFileAppender doesn’t roll file based on size. It is used within windows service.
Here’s part of my configuration file:
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="${windir}\\ FaxService.log" />
 ... |
| 05/04/2006 8:51 PM | notification event for a modified configuration? |
| Replies: 0 |
Hi,
I am using ‘log4net.Config.XmlConfigurator.ConfigureAndWatch(configFileInfo)’ to configure my application’s log4net settings, but then I am programmatically making some minor changes to the settings.
When the config file changes, log4net updates the settings, but I no longer have the minor changes I originally made programmatically.
Is there a way I can be notified... |
| 05/01/2006 6:52 PM | Different versions |
| Replies: 5 |
HiThis isn't really an issue about log4net, but two programs which uselog4net, but I hope someone can offer some advice.I have some classes which use log4net (ver 1.2.9.0). These classes runinside a cms-framework - which apparently also uses log4net internally,butversion 1.2.0.3. This causes problems with my classes - I get an errorlike:Could not load file or assembly log4net, version=1.2.9.0, cul... |
| 04/28/2006 8:45 PM | AdoNetAppender questions |
| Replies: 1 |
Hi thereI have a couple of questions regarding AdoNetAppender, which I am usingto log to a SQL Server database.(1)Can someone explain the use of the "date-time" parameter? For example, Itry this:<parameter> <parameterName value="@log_date" /> <dbType value="DateTime" /> <layout type="log4net.Layout.PatternLayout" value="%date{yyyy-MM-ddHH:mm:ss,fff}" /><... |
| 04/28/2006 5:24 PM | How to identify a computer in log output? |
| Replies: 1 |
Hi thereI have several machines all running the same program, all accessing thesame database.I want to log events from these machines to the same database.Is it possible to configure log4net to automatically include the"machine name" or some other unique identifier from the particularmachine in the log?At the moment we can't tell which machine a particular log output comesfrom.Thanks,Peter |
| 04/28/2006 3:51 AM | Use properties in log file name |
| Replies: 3 |
I would like to use the host name in the log file's name: <appender name="LogAppender" type="log4net.Appender.FileAppender,log4net"> <file value="logs/RecBuilder.[%p{log4net:HostName}].log" />But this doesn't work.When I look at log4net's internal log, it says it cannot create theappender because:"System.NotSupportedException: The given path's format is notsuppo... |
| 04/26/2006 9:51 PM | Adding A Memory Appender at Runtime |
| Replies: 0 |
I'm trying to add a memory appender to root via code, like so...
Private Sub SetUpLogging()
Dim RootLog As ILog = LogManager.GetLogger("root") Dim connectionAppender As IAppenderAttachable = RootLog.Logger
Dim MemoryApp As MemoryAppender = New MemoryAppender() MemoryApp.Name = "ThanksForTheMemories" MemoryApp.ActivateOptions() connectionAppender.Add... |
| 04/24/2006 11:25 PM | Remoting server - health check? |
| Replies: 0 |
Hi,I'm using the Remoting appender and also a Remoting server (as included in log4net distribution and runs as an NT service) to receive the events on the remote sink. Can anyone suggest the best way to provide an "IsAlive" function to this service so I can check whether the Remoting service is alive and well?Thanks,Simon. |
| 04/24/2006 5:13 AM | Interface method to request the level of a Logger? |
| Replies: 4 |
Hello,
Is there an interface method to get the current level of a Logger? Using the ILog interface, I can determine whether certain levels are enabled via the IsxxxEnabled property, but I was hoping to be able to make one call to get the current Logger level. It might seem like an odd request, but we will be passing that info on to a lower level component.
Sorry if ... |
| 04/22/2006 2:43 AM | No enumerable context anymore? |
| Replies: 1 |
Sorry if this has been covered a million times.
I used to iterate through the MDC of a given LoggingEvent when rendering. Something like this:
// Append the MDC values if any exist
if(loggingEvent.MappedContext != null && loggingEvent.MappedContext.Count > 0)
{
foreach(DictionaryEntry entry in loggingEvent.MappedContext)
 ... |
| 04/21/2006 11:18 PM | Uncaught IndexOutOfRangeException in log4net 1.2.9 Beta |
| Replies: 1 |
Hi,We're in the process of updating our logging from version 1.2.0 beta 8 (DLL version 1.2.0.30714) to the 1.2.9 beta and are experiencing an uncaught error when our test system is placed under load.We're running version 1.1 of the MS .Net framework on Windows 2003 Server, and have also seen this on Windows XP Pro SP2.We have a server process which catches all exceptions and logs them as errors.&n... |
| 04/20/2006 3:41 PM | Layout settings not applied to custom event appender |
| Replies: 3 |
Hallo everyone,I have implemented a really simple event appender, which allows me toforward the message from the Log4Net Framework in my own application.This also works fine, but the layout settings from the configurationfile are not applied to my appender. The same Layout settings work finefor the default appenders, which I removed for simplification. I addedthe appender source code and config be... |
| 04/20/2006 6:09 AM | How to log a namespace? |
| Replies: 3 |
Hello,How can I restrict the logging to a namespace or a class?My project uses several namespaces and classes, and I'd like to haveseveral log files:* one for all classes (done)* other log files for just one class or just one namespace.Thank youJulien |
| 04/20/2006 4:34 AM | Question about the RollingFileAppender |
| Replies: 6 |
Does the RollingFileAppender (or the FileAppender) have the ability to have several processes all log to the same log file? This would really be helpful, so if we have some bug that involves more than one process. I guess it would have to open the file and prevent others from opening it in read/write mode in order for that to work, and it would probably also need to have retries built ... |
| 04/20/2006 2:47 AM | [ANN] log4net 1.2.10 Released |
| Replies: 0 |
log4net 1.2.10 Released-----------------------Log4net developers are proud to announce the release of log4net 1.2.10.This release includes many enhancements and bug fixes.The log4net website documentation has been updated to be in sync withthis release.The release notes are available fromhttp://logging.apache.org/log4net/release/release-notes.htmlThis release can be downloaded fromhttp://logging.a... |
| 04/19/2006 12:39 PM | logging stops under wwwroot |
| Replies: 4 |
Hi
I am having a problem with Log4net. I am using log4net 1.2.0. I have a asp.net , c# web application running in windows2000 server. When the application is placed in any folder and created a virtual directory in IIS , it works fine- log file is created (ie . file appender works fine). but if I place the application under c:\inetpub\wwwroot, it s... |
| 04/19/2006 12:21 PM | Re: Re[4]: Logging of the errors in logging |
| Replies: 0 |
If we changed ILoggerRepository to add an ConfigurationMessageEventevent: public interface ILoggerRepository { // snip event LoggerRepositoryConfigurationMessageEventHandler ConfigurationMessageEvent; }someone could write an IPlugin that inspected the message to determineif it were an error-config-message or just a debug-config-message. Thisplugin would have ... |
| 04/19/2006 5:54 AM | Oh where, oh where has my little RenderException() gone? |
| Replies: 3 |
I use the old RenderException method in a class that derives from DefaultRenderer to get Exceptions to into a workable XML format.
Looking through 1.2.9 stuff, I see that this has gone far, far away and isn’t listed in the breaking changes section of the docs. Was anyone else using this method and found a work around without having to customize log4net source?
override protected string Ren... |
| 04/19/2006 3:32 AM | Log4Net 1.1.1 Documentation? |
| Replies: 5 |
Does anyone know where I can get my hands on a copy of the Log4Net 1.1 Manual? I found the API documentation in the ZIP file, but that isn't very helpful for a newbie like me trying to learn how to use and configure Log4Net. Also, I found the Log4Net 1.2 Manual online, but I'm not sure what all the differences are between 1.1.1 and 1.2. The reason I'm using 1.1.1 is that the prod... |
| 04/18/2006 8:47 AM | Rolling File Logs contain junk for non-English OSes |
| Replies: 3 |
Can someone please tell me a work-around for this?When I have localized text returned to me by the OSthat I need to log, the rolling file logs contain junkcharacters such as:ƒƒOƒIƒ“ޏ”s:ƒ†[ƒU[–¼‚ð”Fޝ‚Å‚«‚È‚¢‚©A‚Ü‚½‚̓pƒXƒ[ƒh‚ªŠÔˆá‚Á‚Ä‚¢‚Ü‚·Bƒpƒ‰ƒ[ƒ^‚ªŠÔˆá‚Á‚Ä‚¢‚Ü‚·BSwami__________________________________________________Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam pro... |
| 04/15/2006 5:10 AM | log4net-events.dtd file |
| Replies: 0 |
I am currently logging in Xml layout. I need to get thelog4net-events.dtd file. I could not find this as part of the log4netdownload.Thanks,Meera. |
| 04/14/2006 2:24 AM | Issue with Repositories and configuration... |
| Replies: 3 |
I have an assembly that I want to use respositories for. It has thefollowing declared in the AssemblyInfo.cs file:// We want this assembly to have a seperate logging repository to the// rest of the application. We will configure this repository seperatly.[assembly: log4net.Config.Repository("My.Network")]// Configure logging for this assembly using the'My.Network.dll.log4net.config' file[ass... |
| 04/12/2006 7:15 PM | BufferingForwardingAppender, another question |
| Replies: 1 |
Hi.Yesterday I had the problem that an NHibernate operation took 3202 ms andthe complete callback about 6 seconds, which obviously is too long. So Iconfigured an extra logger for the NHibernate namespace hierarchy with levelINFO instead of DEBUG an the same operation has finished after 76 ms. Butlogging root with DEBUG and NHibernate only with info does not work for usduring development. So I thau... |
| 04/12/2006 6:44 AM | Using BufferingForwardingAppender based on size of message vs number of messages |
| Replies: 9 |
Sorry bout that. Didn't mean to hijack Daniel's thread. He had a note onBufferingForwardingAppender in his thread, which is why I wanted to findmore info on it.My question is this: Currently in the BufferingForwardingAppender, thenumber of messages to be buffered can be set using bufferSize. Is thereany way to carry out the buffering based on the size of the messages?Thanks,Meera. |
| 04/11/2006 10:36 PM | Accessing Appender that was created via config file? |
| Replies: 3 |
Hi all,I am currently in the process of switching my app and a few libraries Iwrote to log4net. So far everything works fine, but now I am at a pointwhere I need the help of people who have more insight into log4net than me.I want to accomplish two things: First I want an appender to output to amultiline textbox of my app. I think that this might be easiest by workingwith an appender similar to Fi... |
| 04/06/2006 10:08 PM | Logging for selected Log levels |
| Replies: 1 |
Is it possible to explicitly turn logging on for Debug, Warn and Fatal messages. In other words only the specified log levels should be recorded and no other messages like Info and Error should be recorded? Currently in the log4Net examples it allows to specify just one loglevel (ie either debug, Warn, etc or All) – but is there some way to just turn on logging only for specific levels and ignor... |
| 04/06/2006 6:24 PM | Loggin to multiple appenders |
| Replies: 2 |
Greetings All,Is it possible to write to more than one appenders? In the FAQs I read that it is possible to do so, but could not find an example.I would like to write the debug logs to a fileappender (if debug logging is turned on), and info logs to a database. Is this possible with log4net?ThanksSaurabh |
| 04/05/2006 10:23 PM | Logging of the errors |
| Replies: 2 |
Hi Ron,I want to log into my LocalHost for errors. But does not seem to dothat. <appender name="RollingLogFileAppender"type="log4net.Appender.RollingFileAppender,log4net"> <param name="File" value="http://Localhost/SSOPAppLog.txt" /> <param name="AppendToFile" value="true" /> <... |
| 04/04/2006 5:37 PM | Dynamic Appenders |
| Replies: 0 |
Hi,I am really a newbie at log4net. I want to dynamically configure loggers, and I do this as follows:private static ILog ConfigureLogger(AuditType logType, string destination) { switch (logType) ... |
| 04/03/2006 11:43 PM | Class Library Logging |
| Replies: 1 |
Hi,
I am using V1.2.0-beta8, on a test .DLL written in C# against .NET1.1 with the DLL being called from a C# windows application.
I have this attribute in the the Assemblyinfo.cs file:
[assembly: DOMConfiguratorAttribute(ConfigFile="UIFeasibility.log.config",Watch=true)]
I am setting up the logger as follows:
private static readonly ILog log = LogManager.GetLogger(Sys... |
| 03/30/2006 3:51 PM | Log4Net suddenly stops logging |
| Replies: 1 |
Hi,
I am using log4net 1.2.0-beta8 in a multithreaded windows-service written in C#. The application is using the RollingFileAppender. While performing some load tests, where a large number of entries have been written, suddenly it can happen that no more log lines are written while the application itself still continues to work properly.
I could read from previ... |
| 03/30/2006 3:43 PM | Logging of the errors in logging |
| Replies: 4 |
Log4net is a great tool but I'm not fully satisfied how log4net dealswith errors in logging. In my project it is necessary not to lose anylogging messages if the logging is on so I would prefer log4netthrew exceptions rather than wrote errors of logging intoConsole.Error and Trace as information messages. I'm ready to catchsuch sort of exceptions at the top level of my code. But I have no wayto ov... |
| 03/30/2006 6:31 AM | .Net v2 support |
| Replies: 5 |
Hi,Are there plans for Log4Net to support .Net V2? If so, any idea when that might happen?Regards,Sylvain. |
| 03/28/2006 3:15 PM | Locking of file by RollingFileAppender |
| Replies: 1 |
I am using Log4net RollingFileAppender to log messages in a local fileand roll the file based on Size and time.Scenario:There can be multiple instance of my application running on windows.All instances log the message using log4net rollingFileAppender intosame file (may be at same time). But when they try doing this, I got thefollowing error:log4net:ERROR [LoggerRollingFileAppender] Unable to acqu... |
| 03/25/2006 5:12 AM | Question about NDC and appenders |
| Replies: 5 |
Can I configure log4net to route messages from a specific NDC context toa appender?- Morten |
| 03/25/2006 4:47 AM | newbie question about configuration |
| Replies: 7 |
Hi .Net developers,I've been trying to get the log4net 1.2.9 beta's WebApp example to work underASP.NET 2.0 without any luck (using C# in VS2005). I don't get any log filesnor trace output when I go to http://myhost/WebAppCS/Trace.axd. Here are thethings I've tried to do:- make sure the directory for the log file is writable- setting the output log file with absolute path (c:\tmp\webap... |
| 03/24/2006 9:26 PM | ~/MyLogFile.txt |
| Replies: 3 |
HiIt would have been grate to be able to configure the logging directoryfor my application, for example, in a environment variable.Before: <file value="c:/LogFiles/log4net/MyLogFile.log"/>After: <file value="~/MyLogFile.log"/>--Best Regards*Morten Andersen... |
| 03/22/2006 8:01 AM | Request for log4net xml schema |
| Replies: 1 |
Dear all,Can someone point me to where I can download the xml schema for log4net?Many thanks,Sokun |
| 03/21/2006 7:21 AM | ADONetAppender.ActivateOptions() causes Connection Leak? |
| Replies: 2 |
I am modifying the buffer size and the connection string of ADONetAppenders programmatically and I am getting a SqlConnection leak. The number of open connections to SQL Server grows to the max connection pool size when I do this repeatedly.
The leak occurs when I call ActivateOptions on the ADONetAppender after I set its BufferSize and ConnectionString. The documentation says... |
| 03/18/2006 5:34 PM | SmtpAppender and flooding |
| Replies: 1 |
Hi!If, for example, our SQL server goes down I get allot of mails from the SmtpAppender. The content of the emails is the same, so a ignore repeated lines function would have solved the problem.Is it another way I can prevent this?
--
Best RegardsMorten AndersenDeveloperVianett AS | morten@vianett.no | Office: +47 69 20 69 74 | Skype: mortander |
| 03/17/2006 8:35 AM | adding a from title for the smtp appender |
| Replies: 1 |
Hi there, i was wondering if there is a way to add a from title in thesmtp appender, it just uses the alias. |
| 03/17/2006 7:42 AM | Logging to particular levels + buffering smtpappender |
| Replies: 4 |
Hi there, I was wondering if there was a possibility of being able tolog to file all levels except the debug level which i want the consoleonly to display ? Also how is it possible to buffer all the logs goingto smtp appender and send it once the program has finished or exitingwith an error ? I only one to recieve one email not many really. Let meknow. |
| 03/16/2006 1:21 PM | Reducing memory dynamic allocation and GC.Collect |
| Replies: 0 |
Hi,
I'm looking for ways to reduce or avoid dynamic memory allocation in Log4Net.
Is there some ways to do this, like using a memory pool, wrapping a managed other library like Log4Cpp,
or some best practices how to use Log4Net for this problem?
We think that because of the dynamic allocations the GC.collect just happens on the wrong time and lowers our performances.
Thanks,
... |
| 03/15/2006 5:15 PM | Log4net throws exception |
| Replies: 13 |
Hi!log.DebugFormat("Hello {0}! Where is {1}?, "Morten");I know that I am missing an argument. The problem here is that some of my applications went down because of this.
--
Best RegardsMorten AndersenDeveloperVianett AS | morten@vianett.no | Office: +47 69 20 69 74 | Skype: mortander |
| 03/13/2006 11:13 PM | Xml schema for Log4Net configuration |
| Replies: 3 |
Hi,
I need to get the XML schema for the Log4Net Configuration settings.
Thanks,
Meera
|
| 03/10/2006 6:21 AM | Issues using from .net debugger |
| Replies: 2 |
Hi, Just started experimenting with log4net, and ran into the followingproblem. I'm using the the 1.2.9-beta version. I'm using VS 2003, with .net 1.1 I took the VB.Net Console App example, changed it to use the 1.1version of log4net.dll I run it through the debugger, and on occasion it fails to start up.Around say one in 10-... |
| 03/09/2006 9:49 PM | Help with XmlLayoutBase |
| Replies: 2 |
Hi Everyone,I interested in logging with log4net generating an XML file with thelog4net.Layout.XmlLayoutBase Skeleton.Can anybody help me out on what parameters I need to declare under the<layout> field, like Schema, etc...Or maybe someone has an example of developing with thelog4net.Layout.XmlLayoutBaseThks in advance for any help.Julian. |
| 03/07/2006 4:35 AM | Log4net with .net 2.0 for com+ servicedcomponent |
| Replies: 4 |
I have a working c# exchange event sink (serviced component) that will do things like autoaccept, log message activities in a database and route messages. I wanted to use log4net with this but am having problems
The core problem is that i am not getting any log messages (though i tried various configurations)
log4net compiled from source in .net using NET_2_0 compile d... |
| 03/04/2006 12:52 AM | RemotingAppender and threads |
| Replies: 1 |
Hi,I've been doing some research on the .NET thread pool, which is used by the Remoting appender in log4net 1.2.9. If I understand correctly, the thread pool is also used to service ASP.NET page requests. Right now I'm using log4net in an enterprise trading application, so the load and amount of information logged can be pretty high.My question is, won't log4net's use of the ThreadPool adversely a... |
| 03/03/2006 12:00 AM | RollingFileAppender thread safety |
| Replies: 2 |
I need to use the RollingFileAppender in a multi-threaded application. The documentation is alittle confusing when it comes to thread safety. The general FAQ says log4net is thread-safe, butthe appender's documentation says it's not.Does anyone have any suggestions on how to use the RollingFileAppender in a multi-threadedapplication? Do I need to modify and try to compile the cod... |
| 03/02/2006 10:42 PM | log4NET from a class library (dll) |
| Replies: 2 |
Hello,I want to log messages from a class library(dll).This dll is called by athird party application on which I have no control. In other words, I cannotmake the third party application read a app.config file.A dll by its very nature does not allow loading of app.config file. I amalso not able to find an AssemblyInfo.cs file to make changes to point tothe config file.I can hard code log4net as ... |
| 03/02/2006 4:19 PM | Double configuration and SmtpAppender configuration |
| Replies: 1 |
Hi, I need some help.
1) I want to configure log level for Log4net.MainForm logger in the following maner:
<root>
<level value="ALL" />
</root>
<logger name="Log4net.MainForm">
<level value="WARN" />
... |
| 02/28/2006 4:55 PM | Setting AdoNetAppender parameters to null |
| Replies: 2 |
Hi
I posted this previously in an earlier thread but haven’t received a reply yet so thought I would try it on it’s own thread…
I've been using properties to send several user-defined messages via the ADO.NET appender. This works great except when I'm trying to set a parameter value to DBNull.Value (to set the column value that this parameter relates to to null), e.g. using the... |
| 02/27/2006 8:14 PM | Multiple filters |
| Replies: 1 |
I would like an appender to log everything bar 2 levelseg: I don't want to log ERROR and INFO level logs.What would the config look like for this?I've tried adding the following filters to the appender:<filter type="log4net.Filter.LevelMatchFilter"> <levelToMatch value="ERROR" /> <acceptOnMatch value... |
| 02/24/2006 6:03 PM | logging not possible in finalizer on application shutdown? |
| Replies: 2 |
All,I'd like to log some information in a protected virtual void Dispose(bool disposing)method which can be called either by Dispose() or by the finalizer(implemented according to Microsoft's proposal "Implementing a DisposeMethod"; seems-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconimplementingdisposemethod.htm).If Dispose(bool disposing) is called by Dispose() everything w... |
| 02/24/2006 1:45 AM | RE: a question about .Net 2.0 and log4net |
| Replies: 1 |
Ken,
The http://logging.apache.org/log4net/release/framework-support.html
page lists the frameworks that we build log4net for. We build specific
versions for each framework to take advantage of new features that are
available in new frameworks. This page lists the minor differences
between the builds.
The log4net assemblies support binary backward compatibility. The .NET
1.0 build... |
| 02/24/2006 12:11 AM | custom level |
| Replies: 1 |
Is there any easy way to add a new level between ERROR and OFF?Thanks |
| 02/23/2006 3:32 PM | Adding appenders programmatically |
| Replies: 1 |
I need to add programmatically references to appenders to a specific logger. In other words I want to configure the following logger from code. Is it possible?
<logger name="Log4net.MainForm">
<level value="ALL" />
<appender-ref ref="AdoNetAppender" />
<appender-ref ref="... |
| 02/22/2006 11:41 PM | Write(Level level, string message) |
| Replies: 1 |
Are there such methods as Write(Level level, string message); available?
Best regards,
Kovalenko Vladimir
|
| 02/22/2006 4:32 AM | please verify my config file. |
| Replies: 3 |
Hello group,
I’m having a problem where I’d like to limit the smpt appender to only send INFO messages and thought I configured my file correctly. What am I doing wrong?
Thank you,
Stephen
<log4net>
 ... |
| 02/17/2006 9:30 PM | How to have an overall ERROR level, except for one specific logger (log4net 1.2.8) ? |
| Replies: 2 |
HiI feel kind of stupid - I don't manage to filter things like I need: I want to have all loggers triggered above ERROR, except for one logger which I'd like to trigger on INFO (I'm infortunately using version 1.2.8).is it possible ?cheersThibaut |
| 02/17/2006 6:52 PM | Appdomain with log4net |
| Replies: 2 |
Hi,After not being able to solve this myself, I'm looking for some sort of best practise solution to a problem that I'm facing: My app (console app) has 2 appdomains, both of which need to log. In an ideal world, they would both log to the same place (in this instance a RollingFileAppender) and if there is non-convoluted manner in which to do this, that would be great (with both appdomains being g... |
| 02/16/2006 9:13 PM | ADO.NET appender parameters |
| Replies: 3 |
Hi
I would like to perform some logging with the AdoNetAppender
using custom parameters and values (i.e. not just using a built in value like %thread)
so that I can, in effect, send several user defined messages (other than just
%message) to separate parameters of the stored procedure with a log. I’ve
noticed in a recent mail the use of loggingEvent.Properties[“@textData... |
| 02/16/2006 11:51 AM | Can log4net be used with Test Project type project in Visual Studio Team System 2005 Beta2 (VSTS) |
| Replies: 0 |
Hi I create a Test Project in VSTS. This kind of project is a special type of project test methods in which can be recognized by Test Manager window or Test View window. I modify the code in the project with some logging code with log4net. Then run it from Visual Studio Command Prompt with MSTest, or from Test Manager window. But no log file created with logging message. Does log4net support Test ... |
| 02/16/2006 9:48 AM | How to log for a ClassLibrary project, but not a Console Application project? |
| Replies: 3 |
Hi I have tried logging for Console Application project. It goes well. And I also tried logging in Class Library project (with code like"Logger.Debug("...");") called by a Console Application project (with .config). This is allright too. But If I only applied log4net in a Class Library project, or a Class Library project called by a Windows Application project, it didn't run well. Can log4ne... |
| 02/16/2006 6:25 AM | Problem with log4net |
| Replies: 1 |
I have created a test console application…
using System;
using log4net;
namespace ConsoleApplication1
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
&... |
| 02/16/2006 2:47 AM | Question: Changing Log Settings in run time |
| Replies: 1 |
Is there a way to change the log settings after application started?
Log Settings are loaded from App.Config file.
I would like to change the log level according to user selection while the application runs.
So if he selected info and error, I will only output those.
And then, once he changed that, is there a way to persist his selection without manipulating the XML f... |
| 02/15/2006 8:46 PM | log4net Contexts and ASP.NET |
| Replies: 10 |
I've seen an email from Piers Williams in december asking about this.Basically - in an ASP.NET application - none of the existing contextsare "safe" to use.I'd like to remedy this. There are two ways forward that I can see.1. Add a new WebContext class.2. Change the ThreadLogicalContext class to use the HttpContext ifrequired. The safest way to do this would be to add a configurationoption to <... |
| 02/15/2006 5:38 PM | SmtpAppender and SSL |
| Replies: 5 |
Hi.
I am currently experiencing the following problem: I am using SmtpAppender. E-mails are sent via smtp.gmail.com which uses SSL. My configuration file looks like that:
<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender"> <authentication value="Basic" /> <username value="username" /> <password value="password" /> <to val... |
| 02/14/2006 5:08 PM | Threshold doesn't work? |
| Replies: 1 |
As I read in the FAQ I used the treshold tag to separate to output of each aprender depending of a level,
This is my configuration file
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
<... |
| 02/14/2006 2:41 AM | Custom Log File Directories |
| Replies: 3 |
Hello all,
I’ve been using l4n very successfully for the last 9 months (holy crap, has it been that long?) with one small problem pertaining to the custom directories that are created for the log files. I am using custom date patterns to put log files under directories named after the year and month that the log files were created. So if I was to create a log file today (feb 13, 2006) t... |
| 02/12/2006 12:31 AM | Flushing a buffered appender |
| Replies: 3 |
If you have an appender buffering log events, is there a method to flush all the buffers and send the log events.
One example of when I want to use this is when my application closes. I want to make sure all my log messages are output before I exit.
thanks,
Nick |
| 02/11/2006 1:12 AM | .NET Framework 2.0 supported? |
| Replies: 1 |
Hi,are the .Net Frameworks 2.0 (full and compact) supported? Or are there someissues? They aren't listed under "Supported Frameworks".Thanks for the infos.- Florian--Telefonieren Sie schon oder sparen Sie noch?NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie |
| 02/10/2006 6:15 PM | Is it possible to have in the same logger different appender depending of the level? |
| Replies: 1 |
Hi,
I am pretty newbie using log4net and I would like to have for a asp.net page a rolling file appender for the debug log statement and other smtp appender for error logs statements.
Is it possible to achieve this behaviour?
Thanks in advance.
Jose Antonio Cortijo Solera
Dpto. de Informática
INDITEX TEMPE
mailto:joseacs@tempe.es
Tlfno. 966657500 Ext. 40969
&nbs... |
| 02/10/2006 5:14 PM | RollingFileAppender just overwrites the same file |
| Replies: 1 |
Hi all,Newbie question, I appreciate any advice.Below is my log4net config, copied fromhttp://logging.apache.org/log4net/release/config-examples.html#rollingfileappenderIt is restarting the file each day - but it's overwriting it.I was expecting it to rename the old one to logfile-20060209 orsomething.log4net 1.2.9 beta, debug .net framework 1.1 build.CheersIain Shepherd<log4net><appender... |
| 02/10/2006 1:22 AM | How do you put a null value into a db field with ADONetAppender |
| Replies: 1 |
I am trying to set a SQL Server text field to null if the string I am putting in is null.
If I set the properties like this:
if (stringText == null)
loggingEvent.Properties["@textData1"] = System.DBNull.Value;
else
loggingEvent.Properties["@textData1"] = stringText;
An exception is thrown in log4net when it trys to execute the... |
| 02/08/2006 5:53 AM | Performance Issues - log4net with Visual Basic 2005 |
| Replies: 3 |
Hi, I am using log4net with Visual Basic 2005 and was wondering if thereare any performance issues with multiple threads of a same process writingto 1 file. I basically have a process which has a pool of 25 threads doingsome processing and all these threads write to the same file. Once in awhile we see some methods taking a little bit longer time tha... |
| 02/08/2006 3:51 AM | setting RollingFileAppender output file name based on appdomain in ASP.NET application |
| Replies: 4 |
hi,I have several services and an ASP.NET application installed on the same machine.I want to use the rolling file appender and have each process log into its own set of files. ideally i would like to use one log4net configuration file to configure logging for all the running processes.I figured out how to use the [%appdomain] to separate the output of the services to different files: <file typ... |
| 02/06/2006 10:02 PM | Log file line number |
| Replies: 3 |
Hi all,
Is there a way to configure the conversionPattern to write the log file line number like below ?
0 : starting application…
1 : the second line of my log file
... |
| 02/02/2006 10:24 PM | ADO.NET Appender and connection pooling |
| Replies: 1 |
Hi,It seems that the ADO.NET appender only ever uses one connection to the database. It opens this connection when the config file is parsed, and keeps it open for the duration of its life.Does anyone see any problems with this being a bottleneck? I searched in the archives and can't find anyone else ever bringing this up. I just wonder if this is a problem under heavy load, because aren't you sin... |
| 02/01/2006 10:47 PM | log4net 1.2.9 beta release date |
| Replies: 1 |
Can anyone shed light on when log4net 1.2.9 beta will be officially released? We would like to use the newer version, but there are concerns around it being labeled a beta version. Any insight would be appreciated.
Anthony Taylor
Staff Engineer
Aspen Technology, Inc.
Suite 1500
2500 CityWest Blvd.
Houston, TX. 77042
281-504-3283
|
| 02/01/2006 6:38 PM | Unhandled exception! |
| Replies: 4 |
/Security Exception/*Description: *The application attempted to perform an operation notallowed by the security policy. To grant this application the requiredpermission please contact your system administrator or change theapplication's trust level in the configuration file.*Exception Details: *System.Security.SecurityException: Request for thepermission of type 'System.... |
| 02/01/2006 3:40 PM | Bug using ColoredConsoleAppender in Windows-Service |
| Replies: 0 |
Hello NG,the ColoredConsoleAppender has a bug when it used in a windows service. TheAppender accepts some logging entrys and then it runs in a deathlock when alogmessage is called ( i.e. Log.Warn("xxx") ).Ok, you will say "Then, dont use the ColoredConsoleAppender in a windowsservice application" but my app can start in console and service mode and ionly want to have one configfile for all. It too... |
| 01/31/2006 1:08 PM | ASP.NET starter help. |
| Replies: 7 |
Hi,I've spent a number of hours trying to get log4net to log something inan ASP.NET project but have not gotten anywhere. Hopefully someone cantell me what's going on here.In the AssemblyInfo.cs file for my main site I have:[assembly: log4net.Config.Repository("SiteCore")][assembly: log4net.Config.XmlConfigurator(ConfigFileExtension="log4net",Watch=true)]In Global.ascx.cs:// Class fieldsprivate st... |
| 01/30/2006 5:51 AM | Compression tool |
| Replies: 4 |
When I use the rolling file appender I get files like this:Example.logExample.log.1Example.log.2006-01-01Example.log.2006-01-01.1Example.log.2006-01-01.2Example.log.2006-01-01.3Example.log.2005-12-06Example.log.2006-12-06.1Now I want to join, and compress the files with a date stamp to savedisk space like this:Example.logExample.log.1Example.log.2006-01-01.gzExample.log.2005-12-06.gzIs it anyone o... |
| 01/28/2006 12:36 AM | Repeat ignores messages |
| Replies: 7 |
Hi all!Can log4net ignore repeated log lines?log.Debug("Hello world");log.Debug("Hello world");log.Debug("Hello world");log.Debug("Hello world");log.Debug("Another message");The log lines above should result in something like this:Hello worldLast message was repeated 3 timesAnother message
--
Best RegardsMorten AndersenDeveloperVianett AS | morten@vianett.no | +47 69 20 69 74 | Skype: mortander... |
| 01/24/2006 8:20 PM | Bug? |
| Replies: 2 |
I use RollingFileAppender to create log files and tail.exe (just like tail in linux) to watch them. When the file is open the rolling brakes. It does not seem to start again before I close tail and restarts my application.
--
Best RegardsMorten AndersenDeveloperVianett AS | morten@vianett.no | +47 69 20 69 74 | Skype: mortander |
| 01/20/2006 8:25 PM | RE: execution takes in 1 minute when enable logging |
| Replies: 4 |
Are you executing the code while the debbuger is attached to the process ?
|
| 01/19/2006 6:24 AM | ADONetAppender Problem |
| Replies: 1 |
> I am trying to log into oracle database and some how its not happening.> Can you please help me out.>> "<appender name="AdoNetAppender_Oracle" type="log4net.Appender.AdoNetAppender">"> "<bufferSize value="128" />"> "<ConnectionType value="System.Data.OracleClient.OracleConnection, System.Data.OracleClient, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5... |
| 01/17/2006 5:06 PM | Extending Log4Net |
| Replies: 4 |
Hi,
I have just started to use the latest version of log4net 1.2.9 and would like to know how best to extend its capabilites to do what i need. We currently have our own logging application which takes an object called LogEntry (containing 5 parameters including a Message field) and makes use of MSMQ and WebService technology.
It is easy enough to write an Appender w... |
| 01/16/2006 9:10 PM | newly created logfiles are locked. Why? |
| Replies: 2 |
I have a class library called taskLogger.cls that loads the config file (aConfigFile.xml) from the specified path. Following are the lines of code in taskLogger constructor. This will create all the log files specified in my config file with zero kb. This class library is a part of TaskProcessor component and taskprocessor component runs as a service in the background on windows 2003 and w... |
| 01/16/2006 6:27 AM | Is there anything resembling a "WebServicesAppender"? |
| Replies: 7 |
I've gotten pretty familiar with the file, smtp, adonet, and eventlogappenders, and have even written my own simple extensions. Now I'm beingasked to make log4net logging happen over the public internet from a .NETWinforms client app, and I'm on unfamiliar ground.The client is a .NET Winforms app that will do some work locally and hit upservers over http via .NET web services for other work, but l... |
| 01/14/2006 2:17 AM | XMLLayout Documents |
| Replies: 0 |
Has log4net-events.dtd been removed from the project? I am unable to locate it in the source tree. If so, what is the recommended method for validating/parsing files produced by this layout? Chris |
| 01/12/2006 2:20 AM | RE: VS 2005 support |
| Replies: 3 |
Do you have a timeframe of when you will be supporting VS 2005?
Dave Poquette Information Systems
Quad/Med LLC
Sussex, Wisconsin 414-566-6889 phone dave.poquette@qg.com www.quadmedical.com www.qg.com |
| 01/10/2006 3:11 PM | log4net question urgent |
| Replies: 1 |
Hi, i am using Log4Net, I dont know why, the log it writing in this format.here, if you notice that the [Header] is on the same line and \r\n is also not working properly, where as the [Footer] is missing,yes the footer tag will appear but when I will write any entry again, can anybody tell me why it is happening.[Header]\r\n2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 1 for each Loop2... |
| 01/06/2006 12:29 AM | Using MDC to handle multirequests |
| Replies: 3 |
Hello List,I am currently trying to get my head around using MDC to handle loggingin an environment with multiple simultaneous requests. Another reasonfor using MDC is that I need to use the "%X{MyParameter}" syntax in myconversion pattern.The problem I have is that (by Log4Net design) the MDC parameters areoverwritten by new parameters. As an example, I have three assemblies"Caller", "Funct... |
| 01/04/2006 4:52 PM | Manipulating the configuration programmatically |
| Replies: 1 |
Hi,
I would like to write a simple UI tool above the log4net configuration that will basically allow me to control the level of logging per a given logger or the root itself.
The thing is that I would like to allow this manipulation to take place while my application is up and running.
I'm aware that I can change the file itself and use the "ConfigureAndWatch" API from my app... |
| 01/03/2006 5:19 PM | TraceAppender ignores format string |
| Replies: 0 |
Hi, everybody.I am using a TraceAppender, that in addition to the conversionPattern that I want allways logs the %logger class before writing the log file. This makes my log files unreadable... This behavior was not there in one of the olderreleases of log4net.<appender name="TraceAppender" type="log4net.Appender.TraceAppender" > ... |
| 01/03/2006 5:53 AM | ADONetAppender - can only use IP in connection string? |
| Replies: 3 |
Hi, it seems that we can only use the IP,port of our database in the ADONetAppender connection string (log4net 1.2.8). Is there a limitation that is preventing us from using the database name, or should the database name work as well as IP,port?cheers,Simon. |
| 12/30/2005 10:04 PM | Multiple logs? |
| Replies: 3 |
Hi all, Until now, I used the following code for my log:Namespace Test{ Class Class1 { Private static string appPath = ""; private static ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType ); pr... |
| 12/29/2005 7:34 PM | log4j.properties file for Tomcat windows service |
| Replies: 1 |
Hi,
I have a problem configuring log4j.
I have installed two of the Tomcat versions. One from zip file and other from exe (as a service version).
The log4j configuration of tomcat from zip file is successfully running.
But there is some problem configuring for tomcat from exe. I copied log4j.properities file to WEBINF/classes but there is no any change, the log file I stated in the properties... |
| 12/29/2005 4:47 PM | log4net across Threads and AppDomains |
| Replies: 0 |
Hello.
I’m wondering about the following situation:
I have configured a RollingFileAppender to log in a file logs\host.log and another one (in a second config file) with exactly the same configuration except the file is logs\plugin.log. I’m running the host and configure log4net with the first config file, the host is logging as expected. The host runs in two threads and statem... |
| 12/29/2005 2:31 AM | tag not overriding tag members |
| Replies: 2 |
Hi,
I need help regarding the following problem.I have the following Log4net Configuration file. The <logger name="LoggerProviderService"> section is not overriding the <root> section.
The webservice i am using is taking the root <level value="DEBUG" /> and the root appenders which are console,smtp and RollingLogFileAppender.
I want my webservice to take <... |
| 12/23/2005 9:40 PM | Log4net does not works in production env |
| Replies: 7 |
Hello all,I am facing a strange problem.The problem seems exactly like somebody posted earlier-------------Logging is working fine on my dev machine but when I deploy it doesnot do anything. I copied the whole code on the production machineand tried debugging it, it worked fine, I go the logs.---------http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4net-user@logging.apache.org&msg... |
| 12/23/2005 3:28 PM | Strange behavior using Log4Net and NUnit |
| Replies: 2 |
Hi,When testing my application from NUnit, with logging set to DEBUG I get the folowing (attached) output in NUnit and logging in the log file.I also include the configuration file.When NOT using NUnit it works fine.The last error (no transaction) is weird because serialization seems to work half (GetData is called, but the deserializing constructor is not).Could this be associated with the Log4ne... |
| 12/21/2005 4:04 PM | BUG? Parent appenders log based on child appender level |
| Replies: 5 |
I've got a requirement where I need one appender to log info level messages to a log file, which I've defined as a RollingFileAppender, and error messages to a mail, which is an appender I've written myself called HtmlSmtpAppender (see my earlier post regarding html format mails). The config entry looks like this: <log4net> <appender ... |
| 12/15/2005 11:31 PM | SmtpAppender configuration error |
| Replies: 7 |
Hello !(I've browsed this list to avoid duplicate threads, but if this problem wasalready announced then forgive me).Let imagine following scenario:1.my app uses smpt appender, which is configured using ConfigureAndWatch.Initially the property smtpHost is set to MyMailServer.net.Some log events occured so some e-mails was sent, what results, thatSmtpMail.SmtpServer is set to MyMailServer.net2.Then... |
| 12/13/2005 6:57 PM | Setting properties on a logging event |
| Replies: 1 |
Is there a user accessible way to set some properties for a single event? I would like to be able to log event as a list of names and values and have these written as separate attributes/elements by the XmlLayout class. I can set the global properties but this seems a bit clumsy for a single event as I have to remove them afterwards.
Thanks
Barney |
| 12/13/2005 4:05 PM | RE: html output |
| Replies: 6 |
I'd go for XML output and do XSLT transformations to HTML
|
| 12/13/2005 3:43 AM | Hierarchical logging...I'm not sure I "get" it |
| Replies: 3 |
and my google fu is not helping either. Is there somewhere anyone canpoint me to get something beyond the paragraph offered in the log4nethomepage to help me grasp what is being talked about? It's touted asone of the big selling points for using log4net and so I feel prettysilly not at least understanding what it's about if not actuallyutilizing it in my code. :)--533777336444244 |
| 12/12/2005 11:12 PM | log4net exception handling |
| Replies: 6 |
Following is the method that logs messages to the log file. Logger is initiliazed correctly before calling this method. If there is any error in LogMessage() method, errors are logged to application event log. What I don't understand is, if the log file that is used for logging messages is currently locked, an exception is not raised in the code below. The code continues to work as i... |
| 12/12/2005 8:26 PM | RollingFileAppender Stops logging in Web Service |
| Replies: 5 |
Hi, I am using Log4Net within a WebService. I have been successfully logging to a file using the RollingFileAppender, however recently the webservice stops logging completly to the file for no apparant reason. The WebService continues to work successfully but no logs are generated. I have read in other threads that by touching the web.config file, this will cause the webservice t... |
| 12/12/2005 7:39 PM | how to handle this error? |
| Replies: 2 |
This error occurs once in a while and I wonder if there is a way to handle it. I turned on log4net internal debugging and this is what I see.
log4net:ERROR [RollingFileAppender] Unable to acquire lock on file C:\Program Files\Mobius\logfiles\log4net\vdrconBOLog.log. The process cannot access the file "C:\Program Files\Mobius\logfiles\log4net\vdrconBOLog.log" because it is being ... |
| 12/09/2005 7:29 AM | Issues with log4net contexts under ASP.Net |
| Replies: 0 |
It's not a bug per-se, but I think it's definitely worth putting
something up onto
http://logging.apache.org/log4net/release/manual/contexts.html
regarding how ThreadContext and LogicalThreadContext are both
completely unsuitable for use within ASP.Net.
Otherwise naive developers (myself previously included) might
accidentally do something like set the ThreadContext up in the
Application_... |
| 12/09/2005 5:39 AM | Can't setup log4net with .NET Compact Framework |
| Replies: 0 |
Hi,I've been trying to setup log4net to work with the .NET CompactFramework, but have had no luck.Here are the details:log4net 1.2.9 betaVisual Studio .NET 2003.NET Framework 1.1.NET Compact Framework 1.0 SP3Smartphone 2003 SDKPocket PC 2003 SDKI'm developing with C# for the Smartphone 2003/Pocket PC 2003 platforms,and decided to try log4net because I wanted console output but consolestatements do... |
| 12/07/2005 9:39 PM | log4net and Microsoft Transactions |
| Replies: 7 |
Has anybody had any problem in log4net with Microsoft transactions? |
| 12/07/2005 2:04 AM | log4net logging level INFO or DEBUG causes the web application to end |
| Replies: 2 |
I have an asp.net web application that uses log4net. I recently upgraded tofrom 1.2.0 to 1.2.9 because I needed to use FileAppender+MinimalLock inorder to access the log files while the application was running. I also madesome other changes to the application and started to get some strangebehavior. The application would suddenly end for no apparent reason and atintermitted intervals. I added more... |
| 12/05/2005 11:03 PM | filtering on message source |
| Replies: 6 |
I need to combine messages from one class with messages of level WARN orabove from other classes. I can easily log the WARN and above messagesbut was wondering on the best way to add in ALL messages from thespecific class. Is the best technique to define a second logger and thenuse LoggerMatchFilter in the appender? Can I avoid having to define asecond logger and use some kind of ClassSource fil... |
| 12/05/2005 7:01 PM | MinimalLock not working |
| Replies: 2 |
Hi All,
I am using log4net v1.1.1.33753. I want to use single log file for all the instances of my application (if any). Thats why I am using following settings in my configuration file but its not working, only first instance of the application is allowing to log messages in the log file none others.
Can anyone tell me whats wrong or what to do?
<?xml version="1.0" encodi... |
| 12/05/2005 1:50 AM | ApacheCon |
| Replies: 0 |
Any log4net'ers attending ApacheCon in San Diego, CA this year? http://www.apachecon.com/I'll be in San Diego Saturday through Thursday.- Ron
|
| 12/01/2005 12:43 AM | Log4net version 1.2.0.30714 |
| Replies: 5 |
Is this a beta version? |
| 11/30/2005 3:48 AM | Trouble with PropertyFilter |
| Replies: 4 |
I'm having trouble making a PropertyFilter work with some custom propertiesof mine, and the archives didn't turn up anything. I'm probably notunderstanding what PropertyFiltering is or am fat-fingering something; helpappreciated.Expected Behavior: a certain FileAppender named 'AssertionException' willonly contain Events with a custom property 'LogEventCategory' set to a valueof 'AssertionHandling'... |
| 11/29/2005 1:43 AM | RE: Specifying a specific folder for log files. |
| Replies: 3 |
You need to escape the back slash. For example:<param name="File" value="..\\Log\\Error.log"/>Chris |
| 11/26/2005 5:02 AM | Programatically changing the logger for NHibernate |
| Replies: 10 |
I had added a configuration that built my loggers in code only and all was well(no xml!). Later though, I found out that NHibernate is doing something bad,logging exceptions with log.Error. These exceptions are handled by the caller,so I really don't want those log calls made at all. No problem, I thought I'dcreate a repository for the NHibernate assembly, setup the appender I want, andthis would ... |
| 11/24/2005 10:13 AM | i want to check out this news |
| Replies: 0 |
i want to check out--JohnnyDJ |
| 11/22/2005 4:52 PM | Log4Net file locking |
| Replies: 7 |
Hi,We wish to port our .NET windows application logging to Log4Net but are facing aproblem. Our application dispays the log file in a rich text box so that theuser can debug himself what all is happening in the application. We plan to userRollingFileAppender so that logs can remain for certain period pf time.However, there is some problem here. When we try reading the log file anddisplay it in the... |
| 11/22/2005 3:41 PM | web.config problem |
| Replies: 3 |
hi all!i have a problem configuring the log4net rollingfileappender. myapplication is structured as followed:web_root+-application main +-bin +-main +- log.txt +- ..... (all the other files) Web.confighere is my Web.config:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <se... |
| 11/21/2005 10:59 AM | copy local? |
| Replies: 0 |
Hi, I just figured that you need to set "copy local" = true when referencingLog4Net library. Is there any way I can use this from GAC and not setting"copy local" = true? Thanks. |
| 11/18/2005 9:49 PM | Re: Checking IsDebugEnabled before calling Debug()? |
| Replies: 6 |
Hi,I was going through the examples and saw this: // Log a debug message. Test if debug is enabled before // attempting to log the message. This is not required but // can make running without logging faster. if (log.IsDebugEnabled) log.Debug("This is a de... |
| 11/17/2005 6:01 AM | Log4Net NewLine Character Problem |
| Replies: 5 |
Hi, I am using the latest version of Log4Net(1.2.9 beta version). I am unable to insert new line characters in the content message of log4net. I am using the following skelton piece of code ----------------------------------------------------------- ... |
| 11/16/2005 8:48 PM | problems with log4net |
| Replies: 3 |
I have included the framework ..
config file look like this
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="A1" type="log4net.Appender.ConsoleAppender">
<!-- A1 uses... |
| 11/15/2005 10:54 PM | Question about RollingFileAppender output ending in a txt extension? |
| Replies: 0 |
I've tried playing around with my config file wrt log file names, and I can't seem to get what I'm looking for. I am wondering if there is a way to have the output from the RollingFileAppender save all the log files as text files (.txt). I've noticed that if I specify just a date pattern in the DatePattern parameter, the resulting log files I get are named:
Server-2005-11-15 Server-20... |
| 11/15/2005 4:51 PM | RollingFileAppender truncates logfile at midnight |
| Replies: 2 |
I use the RollingFileAppender to write a logfile from a long-lived process.It is configured with static logfile name and to roll by date: <appender name="LogfileAppender" type="log4net.Appender.RollingFileAppender"> &n... |
| 11/15/2005 6:07 AM | Can't log nulls with AdoNetAppender? |
| Replies: 5 |
My client is having me log to a SQL Server database using AdoNetAppender.All is going smoothly except for one thing: I can't seem get NULL valuesinto database columns. Certain of the database columns are of SQL Servertype Int (.NET type Int32) because they are primary key values in othertables and need to participate in joins - but the columns allow nulls;occasionally they aren't present. Whenever... |
| 11/15/2005 12:05 AM | .NET 2.0 version of Log4Net |
| Replies: 0 |
When will a version of Log4Net compiled for the .NET 2.0 Framework beavailable for download?Thanks, Joe_________________________________________________________________The new MSN Search Toolbar now includes Desktop search!http://toolbar.msn.co.uk/ |
| 11/11/2005 9:35 PM | Logging in CF on pocket pc 2003 |
| Replies: 2 |
Hello all,How do I log application / exception messages on pocket pc application(developed using .net cf)? Opening a file and writing to it? Or can I uselog4net? Has anyone used log4net or anything similar to log messages?Any other thoughts?Thanks in advance. |
| 11/11/2005 12:31 AM | log4net not logging in web services |
| Replies: 2 |
Hello,I am able to log messages on one pc (XP prof) from a .net web service without any issues to any directory (provided I give permissions ASPNET user).But when I move the same code to another pc (XP prof), it does not evencreate the log file (either in the Inetpub\wwwroot\ or any otherdirecotry).I gave full control permissions to ASPNET and NETWORKSERVICES accounts tothe directory where the log... |
| 11/10/2005 11:08 PM | SmtpAppender fails to send - System.Web.HttpException: Could not access 'CDO.Message' object |
| Replies: 1 |
Hi all-I've noticed the SmtpAppender occasionally fails to send emails. I've run it with log4net debugging enabled and got this from the logs:log4net: Hierarchy: Shutdown called on Hierarchy [log4net-default-repository]log4net:ERROR [SmtpAppender] Error occurred while sending e-mail notification.System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.Target... |
| 11/10/2005 2:26 AM | SmtpAppender loses lines |
| Replies: 1 |
Hi-I am running into a problem with the SmtpAppender losing lines when being used to send large volumes.I have written a sample C# .Net program demonstrating the problem, along with the log4net internal debugging output, I can mail this if required (mailing list doesn't accept attachments).The demo tries to write 1000 lines of 2000 characters each to two appenders (Trace and SmtpAppender). A... |
| 11/09/2005 9:34 PM | Appender configuration inheritance |
| Replies: 1 |
Hello.Is it possible to inherit from another appender configuration in the log4netconfiguration file? We use some appenders of same type and with sameconfiguration, excepting one or two properites and so it would be nice ifthere is an simple inheritance mechanism to shorten the xml config code.I'll give you an example what the xml should look like:<appender name="RollingLogFileAppenderBase"type... |
| 11/09/2005 9:29 PM | RollingFileAppender: log files with constant extension and composite name |
| Replies: 1 |
I'd like current messages to always be logged into a file with the same name (e.g., mylogs.log). When a file hits a maximum size I'd like to have the file renamed and have future logs go into a new file with the same name as before (i.e., mylogs.log). The old file would be renamed to a name that includes a sequence number and date (e.g., mylogs20051109.2.log for today's second log file). It ... |
| 11/08/2005 6:23 PM | PatternLayout - add time increment |
| Replies: 5 |
Hi all, I looked for solution how I could insert to log file an timeincrement consecutive records. As I studied the PatternLayout forlog4net, found no possibility to achieve it. Is there anyone who solved it or it is not possible? Thanks for any response, bye Jaroslav Urban... |
| 11/08/2005 12:55 PM | Log4Net for Oracle 8i |
| Replies: 3 |
Hi All,I am franson. I am new to Log4Net for error log. Iwant log my error in oracle 8i. I got some examplefrom the following url.http://logging.apache.org/log4net/release/config-examples.html#adonetappender-o8I did not get any error message from example. And sametime I cannot insert my error into the database.Please help me to insert error message into oracle 8idatabase.Thanks & regards,Frans... |
| 11/06/2005 8:46 PM | Remoting appender in a Remoting application |
| Replies: 1 |
Hi,Has anyone any idea to resolve this problem,I tried to use a remoting appender like this :<appender name="RemotingAppender" type="log4net.Appender.RemotingAppender" > <sink value="tcp://localhost:8085/LoggingSink" /> <lossy value="false" /> <bufferSize value="95" />... |
| 11/05/2005 12:39 PM | Problem to compile log4net 1.2.9 |
| Replies: 3 |
Hello,I have to compile log4net 1.2.9 to make him use the 2.0.0.0 version ofSystem.Data. I use NAnt and lib/mono/2.0/gmcs.exe and Mono 1.1.9.2/LinuxI got the following error:compile-mono-1.0: [csc] Compiling 201 files to'.../log4net/bin/mono/1.0/debug/log4net.dll'." [csc] error CS0535:`log4net.Config.Log4NetConfigurationSectionHandler' do... |
| 11/04/2005 11:52 PM | What do I need to do to get rid of this error? Please help |
| Replies: 22 |
log4net: RollingFileAppender: Searched for existing files in [C:\Program Files\Mobius\contenuity\LogFiles]
log4net: RollingFileAppender: curSizeRollBackups starts at [0]
log4net: FileAppender: Opening file for writing [C:\Program Files\Mobius\contenuity\LogFiles\vdrconBOLog.txt] append [True]
log4net:ERROR [RollingFileAppender] Unable to acquire lock on file C:\Program Files\Mobius\contenuity... |
| 11/04/2005 3:48 PM | different object instances |
| Replies: 2 |
hi all,is it possible to distinguish different instances of a class (written inc#) in the log-output?in the old vb6 days, i could use the "ObjPtr"-function to get a "uniquevalue" for each instance. in c# i could use the "GetHashCode"-function,but the docs say i'm not supposed to use it for that. how can i do thatwithout adding specific code to the class myself? all i want to see iswhich log-entry ... |
| 11/03/2005 7:37 AM | How to get the log level and other config info programmatically |
| Replies: 5 |
How do I get the current log level and other config info programmatically? The ILogger interface does not define any methods or properties to do this.
More specifically, if I have a logger like this:
private static readonly ILog logger = LogManager.getLogger();
How do I find out the log level of this logger (as set in the config file) and also the log level of the roo... |
| 11/03/2005 1:41 AM | High occurrence errors |
| Replies: 3 |
Hello again to the log4net group!
I am currently using L4N to log all the errors in a real time data acquisition application and have come across a bit of a problem. There are certain places in the application where exceptions occur at a very high rate when a problem does arise and the log files generated become huge in a matter of minutes (or in one case, seconds). The specific places that I ha... |
| 11/02/2005 3:47 AM | newbie - log4net deletes my config file! |
| Replies: 2 |
I'm a .net and log4net newbie working thru the tutorial at http://www.codeproject.com/csharp/log4net_intro.asp First example, logging to console with no config file, works fine. 2nd example, using a small config file, I see two problems. The main problem is that my config file is deleted from the system when I run the project. Here is the complete code of the project: using System; using log... |
| 10/28/2005 1:44 AM | log files get reset at 12:00 noon every day |
| Replies: 5 |
Hi,This is totally weird. Every day at 12:00 noon the log files from our application get reset. If I check them in the morning, there are entries starting in the night, there's entries throughout the morning, and then exactly at noon log4net seems to delete the file and recreate it, so all the entries from midnight until noon are deleted.This is only happening in our recently deployed QA and produ... |
| 10/28/2005 12:59 AM | internal debugging. |
| Replies: 5 |
Is this how I enable internal debugging via code?
log4net.Util.LogLog.InternalDebugging = true;
Also, where are these log messages written to? Is it written to text file and where is this file located?
If not, how can I set it up to write all the messages to text file?
Finally, is this quote true?
"Log4net is designed to not throw exceptions. Your application... |
| 10/27/2005 4:01 PM | Controlling the date format of the logged events |
| Replies: 2 |
In my application I need to be able to store my log messages date format as UTC. It seems that the default used by log4net is local time format. Is there a way to control the date time format (preferably through configuration)?
Any help would be greatly appreciated.
Ofri
|
| 10/25/2005 7:01 AM | DebugView doesn't capture when using Remote Desktop |
| Replies: 1 |
Hi,I can use DebugView locally and it always works. However when I use Remote Desktop to some of our servers and try to run it, it doesn't seem to capture anything. I'm running it locally on the server I'm remoting into, but no luck. I do have debugging turned on in both the web.config and log4net.config files.Has anyone used DebugView successfully on a remote server with log4net?Thanks,Simon. |
| 10/25/2005 6:56 AM | HostName property sometimes empty |
| Replies: 2 |
Hi,I'm having a problem where I'm trying to log the HostName property (like this: %P{log4net:HostName}) and on some servers it seems to work and on others it doesn't. I'm using v1.2.8 and trying to log to both text files and SQL Server. In both scenarios I have some cases where it works and some where it doesn't.Has anyone else had this problem of the HostName property being empty??Thanks,Simon. |
| 10/25/2005 2:31 AM | DbType for CLOB column using AdoNetAppender |
| Replies: 0 |
Hi,
I have sent the following email but used a wrong subject (by replying). I'm resending it.
Thanks.
----------------------------------------------------
Hi,
I'm using AdoNetAppender to log to an Oracle 10g database. There is a CLOB column used to store diagnosis message with stack trace if there is any. The following config is used for this column.
<p... |
| 10/24/2005 3:43 AM | Log4Net Reports |
| Replies: 3 |
Hi,I know the primary purpose of Log4Net is logging capability in yourapplication. However, I'm wondering if it's also used/recommended forReporting?I've heard talk of people using Log4Net to generate logging information thatthey intend to use for creating reports. Is this a recommended strategy? Or should application reporting be kept separate from Log4Net entries?From what I und... |
| 10/22/2005 3:59 AM | Log4net seems to hang when starting up windows service |
| Replies: 6 |
Hi Everyone,We're using log4net 1.2.9 beta to log output from a Windows service.We're experiencing a problem where it looks like log4net is hangingduring start-up, causing the service to timeout (we get an error messagesaying "Error 1053: The service did not respond to the start or controlrequest in a timely fashion"). It's especially odd since it only seemsto happen every other time we try ... |
| 10/19/2005 6:41 AM | Custom global param |
| Replies: 1 |
Hi all,Does the log4net framework support custom parameters that I can retrieve incode? Basically, I would like to set a property called "VERBOSITY" in thelog4net config file that I could retrieve in code and use to manipulate mymessages that get sent to the logger. When this value is "ON" I wouldappend stack trace info to messages, regardless of the log level I will logthe message at.... |
| 10/12/2005 3:31 AM | RemotingServer hangs? |
| Replies: 1 |
Hi,I'm using a .NET Remoting solution which uses the RemotingServer NT service, included as example code with the distribution. I have a custom .NET Remoting appender which sends events asynchronously to the RemotingServer (in 1.2.8 the RemotingAppender was not asynchronous, so I wrote my own).The other day the RemotingServer service stopped responding and would not log anything until I restarted ... |
| 10/12/2005 1:49 AM | Dynamically add Souce and Category to EventLog |
| Replies: 4 |
Hello There,
I am using the most recent version of Log4Net. I need to be able to add source and category information on a per message basis. I am able to successfully add this in the SQL server as I can utilize MDC properties.
Example:
MDC.Set("category", category);
Can I do something similar to EventLogAppender?
Thanks in advance.
Mohit
|
| 10/11/2005 4:42 AM | Inability to use EventLogAppender with ASPNET |
| Replies: 6 |
With log4net internal debugging turned on, an attempt to create an EventLogAppender for a web application is failing:[3616] log4net: XmlHierarchyConfigurator: Setting Property [Layout] to object [log4net.Layout.PatternLayout] [3616] log4net: XmlHierarchyConfigurator: Setting Property [LogName] to String value [Application] [3616] log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [E... |
| 10/11/2005 4:15 AM | Capture Log4NET Internal Debugging |
| Replies: 1 |
Is there a good way to capture the internal Log4NET debugging for a web site or web service? I would like the ability to capture the debugging so that I might better figure out why logging is not working.
For my app, logging is working great now, but I would like to capture the internal debugging output just incase something fails in the future.
Thanks! |
| 10/11/2005 2:10 AM | DefaultDomain / Repository Question |
| Replies: 1 |
Hi,What would be considered the equal of the following line in 1.2.9?[assembly: log4net.Config.Domain(UseDefaultDomain=true)]Thanks,Mladen |
| 10/10/2005 10:19 PM | Forcing flush before killing a process |
| Replies: 1 |
Hi,is there some way to flush all the logs before killing the process ? I'm using Environment.Exit() for last chance application exit (when everything else has been tried).I'd like to record the fact that I had to kill the process. Is it doable ?regardsThibaut |
| 10/08/2005 2:55 AM | different levels for appenders |
| Replies: 1 |
Hello,I would like to know if different appenders could havedifferent levels of logging.In my project I have a RollingLogFile appender and anEventLog appender; I would like to log all messages(level=ALL) in the file and only ERROR messages in theeventLog, is it possible ?ThanksJC __________________________________Y... |
| 10/04/2005 12:39 PM | TypeInitializationException was unhandled |
| Replies: 9 |
HiI am getting following error in log4.netThe exact error message and stack trace:System.TypeInitializationException was unhandled Message="The type initializer for'log4net.Core.LoggerManager' threw an exception." Source="log4net" TypeName="log4net.Core.LoggerManager" StackTrace: atlog4net.Core.LoggerManager.GetRepository(AssemblyrepositoryAssembly... |
| 10/02/2005 5:32 AM | Anyone want to handle posting a log4j -> log4net wrapper on sourceforge? |
| Replies: 0 |
Hi;
I am working on some java code that we are porting to J#. Our goal is to have a common code base so we want to be able to call the log4j classes that we have throughout our code.
However, we do not want to port log4j as log4net exists, and is widely used in the .net world. So I am creating a wrapper that is the public log4j classes that underneath calls log4net. I think thi... |
| 09/29/2005 9:09 PM | Negate a filter |
| Replies: 1 |
HiIs it possible to negate a filter. I.e. instead og letting matched througt,it should stop matched from getting through.Lets say I want to remove lines containing the word SQL from my log, how doI setup a filter that will let all lines through, except lines containingthe word SQL??TIASøren |
| 09/28/2005 3:02 AM | LOG4NET - SMTP Appender Not Working |
| Replies: 13 |
Hi, I am a LOG4NET configuration file to log information into a log file and send email to SMTP server. Logging information is successfully getting logged into the log file but email via SMTP Host is not working. Is there anyway to debug why email delivery is not working? I have checked SMTP server, looks like LOG4Net is not even hitting the server, there is no email waiting to be delivered.
&n... |
| 09/28/2005 12:21 AM | Compact Framework 1.0 MsmqAppender |
| Replies: 3 |
Hi all,
I am using the MsmqAppender on the Full Framework without problems. Recently had to port it to the Compact Framework. Up until this point we have used Odyssey.CFCom to bridge the managed code to COM gap (since the Messaging namespace does not exist in the 1.0 CF) and that is what I used in the MsmqAppender. This works. However; there seems to be a memory leak.&nb... |
| 09/24/2005 7:57 AM | DB l |