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 i
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
>
>
> I checked the source code for the AdoNetAppender, and in the SendBuffer it
> tries to do a reconnect (if the parameter reconnectonerror is stated in the
> config).
>
>
>
> override protected void SendBuffer(LoggingEvent[] events)
>
> {
>
>if (m_reconnectOnError &a
Seems very unlikely, since once the app is restarted how does it know where it
left off? I used the TextPad text editor, which displays line numbers on each
line. Other advanced text editors will do the same.
Simon.
-Original message-
From: "Damien Heckler" [EMAIL PROTECTED]
Date: Mon,
Hi,
Has anyone come up with any creative ways to solve this problem of the database
connection hanging? The only thing I can think of is to have a process that
"touches" the config file on an hourly basis. Otherwise we have to remember to
go around doing this manually on all the servers wheneve
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 an
I don't quite understand your example of the LogEntry object. However, check
out the sample code that is included with the log4net distribution. There are
full examples that show how to extend log4net. I have done it quite a bit and
it works well. Yes it is easy enough to write your own appender
I looked at this a while back and wrote my own web services appender. I first
wrote it to send a fixed set of log parameters, but then you have a problem if
you ever write exensions to log4net and your set of parameters changes. You
would also have to change your web service methods each time. T
Thanks. Can anyone comment on log4net 1.2.8? 1.2.9 was a significant upgrade.
Simon.
-Original message-
From: si [EMAIL PROTECTED]
Date: Mon, 02 Jan 2006 23:34:20 -0800
To: Log4NET User log4net-user@logging.apache.org
Subject: Re: ADONetAppender - can only use IP in connection string?
>
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.
and I'll look in to it in
> the next couple of days.
>
> Niall
>
> On Thu, 8 Dec 2005, Simon Wallis wrote:
>
> > Has anyone else experienced this, or know why this might be happening?
> >
> > Simon.
> >
> > -Original message--
Has anyone else experienced this, or know why this might be happening?
Simon.
-Original message-
From: "Simon Wallis" [EMAIL PROTECTED]
Date: Tue, 29 Nov 2005 17:40:13 -0800
To: log4net-user@logging.apache.org
Subject: onlyFixPartialEventData=true, but partial data still lo
Hi,
I'm setting onlyFixPartialEventData=true in my config file and am using an
ADONetAppender (log4net 1.2.8). In my appender config settings I have
parameters for ClassName, MethodName, FileName, and LineNumber, but shouldn't
these be NULL in the database since onlyFixPartialEventData is equal
Hi Nicko,
Due to time constraints I just created a custom property and set the hostname
myself. I basically copied and pasted the function from SystemInfo.HostName.
Thankfully it works fine. I didn't try to reproduce with 1.2.9.
If it's the first time you've heard of this then it must be just s
: log files get reset at 12:00 noon every day
> I had this problem as well a while ago. Upgrading solved it. Search
> the mail archives for my message for specifics. Be sure you are using
> the latest versions from the log4net site, not the sourceforge site --
> it is stale the
the parameter to specify when the rollover should
> occur? If it is, you have it set to daily. Not sure why it would
> choose 12pm rather than 12am but I am curious what effect the
> "log" string would have on that...
>
> On 10/27/05, Simon Wallis <[EMAIL PROTECTED]> wrot
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
you
>need to define the level in the config file. Add the following to the
>top of your section:
>
>
>
>
>
>
>Then you can use the ACTIVITY level in your config file.
>
>Cheers,
>Nicko
>
>> -Original Message-
>> From: Simo
Hi, I want to add a new custom logging level, called ACTIVITY, to record user
activity. It can have the same level as INFO, but it must have its own name so
that it's easily distinguishable and so I can record ACTIVITY events to a
separate log file.
Since the log4net Level class is sealed, I ca
Yup, it should be warn. I've added several custom parameters in the same
manner. The log level should match the level of the function name. Ie.,
Warn(...) uses Level.WARN.
Simon.
-- Original Message --
From: "Burger, Erik" <[EMAIL PROTECTED]>
Reply-To: "L
Hi again,
I know there's no strict answer on when to use each log level, but here's the
final standard I decided on. Maybe others will find it helpful as a starting
point.
I did add my own log level, TRACE (for recording metrics), as part of my own
extensions to log4net. As seen in the example
t;(like a failure to access the database that cannot be recovered from at a
>later time).
>
>In production, I would (but that's just me) turn on everything except DEBUG.
>At the very least you should turn on everything more severe than WARN.
>
>Hope this helps. I would be int
Hi,
I would like to set some guidelines for developers in my team on when each
logging level should be used. Can someone who's been using this for a while
provide some guidance?
Eg.,
FATAL - use when a critical system failure happens. This is a situation where
someone would want to be paged in
Hi, I'm trying to create a web service that will receive an array of
LoggingEvent objects sent from a custom appender. I suppose this is a general
.NET question on serialization, but what is the best way to do this?
I tried playing around with the SoapFormatter class, which serializes an object
would avoid any
compatibility issues like I had.
Simon.
-- Original Message --
From: "Simon Wallis" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Fri, 10 Dec 2004 08:34:03 -0600
>I think I'm narrowing down my proble
I've written a couple of custom appenders: one logs events to a web service and
one makes a Remoting call. Both have an attribute called Async. If set to true
in the config file, the appender will do the work in SendBuffer() or Append()
asynchronously. If set to false it will do it in the normal
Hi, I'm writing a web service that takes a LoggingEvent object as a parameter
(sent via a custom appender that makes calls to this web service). I would like
the web service to take these events and route them back into log4net. Thus,
log4net would be used by the web service to do all the actual
The log4net docs say we should use onlyFixPartialEventData=true because the
location information is "extremely" slow to generate.
I can live without the class name, method name, line number, but the logger
name is necessary. Otherwise how do you know where in your code base the event
came from?
Hi, I created a log4net.snk file using sn.exe, but I'm having trouble in
Release mode. Debug works fine, and if I use AssemblyKeyFile("") in
AssemblyInfo.cs instead of putting the path to the .snk file in the parameters,
then Release mode also works fine. So I think something is messed up with m
e in the future gets
the same error.
-- Original Message ------
From: "Simon Wallis" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Thu, 9 Dec 2004 13:46:59 -0600
>Not sure what you mean. The client is not even aware that Remot
Hi,
I wrote a custom appender, put it in the Appenders folder and recompiled the
log4net dll. Is there a better way to do this? I think my custom log4net.dll is
causing me problems and compatibility issues.
How can I add a new appender and not modify the core dll? Should it go in it's
own proj
have access to the exception class too? Just a shot in the
>dark but with remoting the serialized assemblies have to be available to
>both client and server.
>
>-Original Message-
>From: Simon Wallis [mailto:[EMAIL PROTECTED]
>Sent: 09 December 2004 15:16
>To: Lo
nerated by the remoting server in
>the ObjectReader.Deserialize methods. This is then being thrown back to
>the client.
>
>How have you setup the remoting server listening on 8085?
>
>Nicko
>
>> -Original Message-
>> From: Simon Wallis [mailto:[EMAIL PROTECTED]
Never mind, found the EventId extension code in the extensions directory. Was
working with a subset of the code so couldn't find it. Sorry for the bad post!
S.
-- Original Message --
From: "Simon Wallis" <[EMAIL PROTECTED]>
Reply-
In regards to the following thread, where can I see the source code for the
EventId extension? I can find the example code where it is used, but where is
the implementation? I would like to write a similar extension to log4net.
Thanks,
Simon.
From: http://sourceforge.net/mailarchive/message.ph
Hi, I'm trying to use the RemotingAppender. I got the client and server sample
code working fine. Now I'm trying to use the appender in my own code but I'm
getting an error that I can't figure out. When I run my own app (acting as the
client) I see this stack trace in DebugView:
[9596] log4net:
program presents me with some
>options for adding the new UDPReciever. I'm not able to change the
>active menu item but I can change the other ones (some are prefilled
>for me):
>
>active "false"
>class "class.org.apache.log4j.net.UDPReceiver"
>decoder
Hi, I'm using the UdpAppender to send events to another server on our network.
I've got Chainsaw working for examining the events in real-time, but have also
written my own app to receive the events. The events are sent to the app
formatted using XmlLayout. In the app I would now like to parse t
f the sample ADO appender.
>
>Blimey, sorry to go on and on!
>
>Yes, any example code would be great - please pass it on, and many thanks
>for your email
>
>Regards
>
>Ian
>
>
>
>
>
>
>-Original Message-
>From: Simon Wallis [mailto:[EMAIL
Hi Ian,
No, you don't need to do anything to the LoggingEvent class. You create your
own appender and override the Append(LoggingEvent loggingEvent) method. In this
function you can access loggingEvent.MessageObject, which will give you the
message you logged from your code -- in your case, an
I would like to dynamically determine the log4net config filename. I tried
log4net.helpers.SystemInfo.ConfigurationFileLocation (seen in
DOMConfigurator.cs) but it gives me the wrong info. It gives me "web.config",
but I'm using ".dll.log4net" as the config filename.
I have this code in my Glob
//logging.apache.org/log4net/release/manual/faq.html#internalDebug
>
>
>The XmlLayoutSchemaLog4j is not generating caller location information
>because this is slow to generate. You need to enable this by setting the
>LocationInfo property to true on the XmlLayoutSchemaLog4j layout. E.g.:
&
I'm trying to get log4net to communicate with Chainsaw using the UdpAppender. I
have everything working successfully except for the fact that the Class,
Method, File and Line columns in Chainsaw show up empty.
Here is the appender config code I'm using:
I've been running some performance tests today on using the log4net
ADONetAppender. I have a simple ASP.NET page that does one log request, and I'm
using ACT to hit this page with 50, 100, 150, 200, 300 and 400 users with a
5-10 second random delay between each request.
I did one set of tests w
Hi, I want to log events in my web app to SQL Server, but there is a firewall
between the database and the web server where I'm logging from.
What options do I have for sending events through the firewall to another
server which could in turn log the events to the database? Do I use the
Remoti
Hi Eric, would you be willing to share the code for your solution? I think I
could really make use of this.
Simon.
-- Original Message --
From: "Eric Seifert" <[EMAIL PROTECTED]>
Reply-To: "Log4NET User"
Date: Tue, 5 Oct 2004 12:25:54 -0400
>For develop
Hi, has anyone tried and found a benefit to doing asynchronous logging to
something such as MSMQ? I currently plan to log to SQL Server but wondered if
somehow doing it asynchronously would yield better performance. It doesn't seem
like log4net has an MSMQ appender so that will be another challe
ssage --
From: "Simon Wallis" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Fri, 1 Oct 2004 08:49:12 -0500
>Is there no one that can help me with this? Surely there are many people using
>the ADONetAppender. This problem is sto
abase. Do I have to open it myself somehow?
Thank you,
Simon.
-- Original Message --
From: "Simon Wallis" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Tue, 28 Sep 2004 16:03:30 -0500
>Hi, I'm trying to get the SQL Ser
Hi, I'm trying to get the SQL Server appender working for log4net. I have the
log file appender working, but am having problems with SQL Server.
I traced through the log4net code and in ADONetAppender.cs (line 343 in my
version, 1.2b8), there is this check:
if (m_dbConnection != null && m_dbCon
Hi, I'm trying to get the SQL Server appender working for log4net. I have the
log file appender working, but am having problems with SQL Server.
I traced through the log4net code and in ADONetAppender.cs (line 343 in my
version, 1.2b8), there is this check:
if (m_dbConnection != null && m_dbCon
The EMAB (Exception Management Application Block) is just a facility to publish
exceptions, it doesn't do error handling for you. Out of the box it only
supports the Windows Event Log, although it's quite easy to extend. I got it
working but abandoned it because it has no way to define log level
52 matches
Mail list logo