In all the example documentation I've seen, the element of the config
is defined after the definitions. I don't know why this would
make a difference, but maybe try that and see if it makes any difference.
I can't see anything obviously wrong with your code or config.
-Original Message---
Title: Message
Some of the
documentation on the website is out of date. Check out the docs that came
with the log4net distribution in the "doc" folder.
-Original Message-From: Dru
Sellers [mailto:[EMAIL PROTECTED] Sent: Monday, November 15,
2004 5:35 PMTo: 'Log4NET User'Subject: Log
log
errors to e-mail.
On a side note, all of your e-mails are coming to me as rich-text (RTF)
attachments. Could you switch to plain text?
--
Neils Christoffersen
BIT Integration
773-2723
-Original Message-
From: Mark Kamoski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10,
Wouldn't that throw a FileNotFoundException?
-Original Message-
From: Benjamin Peikes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 1:50 PM
To: Log4NET User
Subject: RE: Access is denied: 'log4net'
Actually, it looks like log4net is not in a directory where the server can
to wait until midnight to see if it
rolls over.
Thanks.
--
Neils Christoffersen
-Original Message-
From: Nicko Cadell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 11:06 AM
To: Log4NET User
Subject: RE: RollingFileAppender question
Try adding
Nicko
> -Original
Currently it is not creating anything with the date in the filename, just a
cdtimer.log file. I switched the date pattern, we'll see if that works.
--
Neils Christoffersen
-Original Message-
From: Nicko Cadell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 10:54
cally), creating a file called
"cdtimer.log.2004.10.25", with "cdtimer.log" being the most current file.
At the moment it appears that the file is not being rolled over at all. Can
anyone point out the error of my ways?
Thanks!
--
Neils Christoffersen
Don't thank me, thank Nicko for providing the bulk to the implementation
(GetAppenders and SetTextBox methods).
I wasn't aware of the threading issues involved, so thank you for the
updated code.
-Original Message-
From: Paul Welter [mailto:[EMAIL PROTECTED]
Sent: Friday, October 22, 200
I have the following line in AssemblyInfo.cs, so log4net has the details of
my config file:
[assembly:
log4net.Config.DOMConfigurator(ConfigFile="log4net.config",Watch=true)]
The "log4net.config" file should be located in the same directory as your
application and look something like this:
I've pasted my TextBoxAppender and the applicable section of my log4net
config file below (namespaces changed to protect the innocent). I use the
DOMConfigurator.Configure() to parse the config file when starting the
application and then call TextBoxAppender.SetTextBox(), passing it a
reference to
I chose the second option (as I am already using DOMConfigurator) and it
worked beautifully. I added your SetTextBox() and GetAppenders() methods to
my TextBoxAppender, so all the code has to do is call
TextBoxAppender.SetTextBox(myTextBox).
Thanks very much for your time.
-Original Message--
Title: TextBoxAppender
I'd like to have log4net append messages to a TextBox control. I have subclassed AppenderSkeleton into a TextBoxAppender class, but don't know how to pass it an instance of TextBox to append to.
I found this same question posted on the old sourceforge list with no resp
12 matches
Mail list logo