I'd just like to say that now that I *do* get this feature...wow. That
truly is quite powerful.
--
533777336444244
Try creating an additional FileAppender that does everything your
RollingFileAppender does:
There may be a problem with how the RollingFileAppender is rolling its
files.
Adding a system.diagnostics node to your web.config will allow you to
capture log4net's debug information:
On 12/12/05, Shireesh Thanneru <[EMAIL PROTECTED]> wrote:
> http://logging.apache.org/log4net/release/manual/introduction.html
Ack! I *thought* I'd seen something like that on the site back when I
first looked into log4net but for some reason managed to miss that
when I went looking today. Thank y
http://logging.apache.org/log4net/release/manual/introduction.html Jeremiah Voris <[EMAIL PROTECTED]> wrote: 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 abo
Title: Message
More
generally, if your components are prone to "hanging," this seems like a larger
problem than a logging issue. You may want to design the observer app to
watch the components themselves, then start alerting as soon as the hang
occurs.
-Marc
-Original Message---
and my google fu is not helping either. Is there somewhere anyone can
point me to get something beyond the paragraph offered in the log4net
homepage to help me grasp what is being talked about? It's touted as
one of the big selling points for using log4net and so I feel pretty
silly not at least un
I would write a second app that polls the log file every X seconds to see if it's locked or if some other "bad" situation has occured.On 12/12/05,
Ramaa Davanagere <[EMAIL PROTECTED]> wrote:
Well, I have a
special situation and I'm not sure how to handle it...
I have lot of
Does the app create the log.txt file or did you?
Maybe the identity that the web app is running under does not have
permission to write to that file or directory.
You should run with log4net internal debug enabled to see any error
messages that log4net encounters.
http://logging.apache.org/log4ne
Make sure that you are opening the file for Read only and that you allow
ReadWrite as the share mode, e.g.
System.IO.File.Open(filename, FileMode.Open, FileAccess.Read,
FileShare.ReadWrite);
Nicko
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sankalp
> Sent: 22
Well, I have a
special situation and I'm not sure how to handle it...
I have lot of components
using log4net for tracing, logging, etc and they all use a single file for
logging. If for some reason, if a component hangs, the logfile is locked
and there after nothing is logged into t
Setting the StaticLogFileName property to true means that the current
file will be called 'CAPS_DMS.log' and will be renamed when the rolling
period is up. If StaticLogFileName is false then the current file will
already be named with the start of the date range period.
If the file is being overwr
Thanks for yr reply.
The SetConfigurator method is used to tell Log4Net where to find the config
file. The code is as follows:
public static void SetConfigurator(string configFile)
{
log4net.Config.DOMConfigurator.Configure( new System.IO.FileInfo(
configFile ) );
}
It uses DOMConfigura
For most people, it's far more annoying for the application to fail because of a logging error than because of a true application error:
http://logging.apache.org/log4net/release/faq.html#reliabilityIs log4net a reliable logging system?No. log4net is not reliable. It is a best-effort and fail-stop
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 i
Perhaps there is something wrong in your
Opal.Logging.LogEntry.SetConfigurator method. Can we see the source to
that? My Application_End usually includes a simple message to help my
keep track of when the app domain gets unloaded.
protected void Application_End(Object sender, EventArgs e)
{
lo
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
I would suggest that you try to find out
who is locking the file.
A tool such as Handle (Freeware) will tell
you that in a split sec. (http://www.sysinternals.com/utilities/handle.html)
Then you can see if it is another instance
of log4net, or if it is someone/something trying to re
I don't
want to use "MinimalLocking". Any other ideas?
-Original Message-
From: Ramaa Davanagere
Sent: Monday, December 12, 2005
7:40 AM
To:
log4net-user@logging.apache.org
Subject: how to handle this error?
This error occurs once in
a while and I wonder if there is a wa
We were finally
able to figure why log4net wasn't working with MTS. It was nothing to do
with log4net. Unfortunately it was a problem with the server itself. L We re-built the machine and re-tested and everything is working
great now.
Thanks for all
the input.
-Original Me
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 canno
20 matches
Mail list logo