I just browsed log4j's documentation a little, and came across their
"ExternallyRolledFileAppender".
It is a file appender that listens to a port, and when a certain signal
comes through, it rolls the file (i.e. closes the current file, renames it
and starts over with a new file).
I guess this is
Hi Richard!
I would very much like to see what you
have. I will do my best to give you constructive feedback...
There are two major log viewers out there
today;
Chainsaw (http://logging.apache.org/log4j/docs/chainsaw.html)
- which in my opinion is too focused on log4j and an Apa
g rotating
tools for Windows...
In my opinion, the rolling file appender as already grown too complex, with
several configuration parameters whose side effects in cooperation with
other parameters are hard to foresee without reading the source.
/Göran Roseen
<[EMAIL PROTECTED]>
Ps.
If a
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
Philip Nelson wrote: "And, I can use injection techniques to add logging
setup to my apps with minimal coding."
This sounds...eh, interesting! Would you care to elaborate on that?
/Göran Roseen
r specifies the type of data, e.g. logger, level, date, thread
name."
"A conversion character" is not correct any more is it?
Sincerely,
Göran Roseen
-Original Message-
From: Urban Jaroslav, Ing. [mailto:[EMAIL PROTECTED]
Sent: den 22 november 2005 10:03
To: log4net-
Yes, the reason is that sometimes it takes a while to generate the argument
to log.Debug(). If your code looks something like:
log.Debug(CallReallySlowComponentAndGenerateAMessage());
you would of course benefit from using
if (log.IsDebugEnabled)
log.Debug(CallReallySlowComponen
How about %timestamp?
>From the documentation: "Used to output the number of milliseconds elapsed
since the start of the application until the creation of the logging event."
/Göran
-Original Message-
From: Urban Jaroslav, Ing. [mailto:[EMAIL PROTECTED]
Sent: den 8 november 2005 12:24
Sorry, the line became more complicated
than necessary (that's what I get for cut&pasting shamelessly from the
documentation).
It should say:
XmlConfigurator.Configure(new FileInfo("logging.config"));
From: Göran Roseen
[mailto:[EMAIL PROTECTED]]
S
>Ramaa Davanagere wrote:
>"I can't use the config file because this component is being
used as an interop component and all the VB components (20+) use this interop
component for Error >tracing and logging. Interops don't handle the config files very
well. Hence I am using an xml file (as
The really simple solution is to name the loggers when you create them,
i.e.:
public class myClass
{
private ILog loginst;
private static int memberCount = 0;
public myClass()
{
loginst = LogManager.GetLogger("myClass." +
memberCount++.ToString());
Well, the ILog interface does have the
IsEnabled methods, which will solve most situations where you need to
address current log level.
i.e.
if (log.IsDebugEnabled) { log.Debug("Entry number: " + i + " is " + entry[i]);}
/Göran
From: Shireesh
Thanneru [mailt
trong name and Log4net
I made the change as you described below
[assembly: AssemblyKeyFile("log4net.snk")]
and I still get the same error message. I'm using C#.
- Ramaa
-Original Message-
From: Göran Roseen [mailto:[EMAIL PROTECTED]
Sent: Friday, September 02, 20
Do you reference the strong name file in the Assembly Info?
In AssemblyInfo.cs (if you use C#) there is an attribute [assembly:
AssemblyKeyFile("")].
Replace the empty string with the name of you file.
/Göran
-Original Message-
From: Ramaa Davanagere [mailto:[EMAIL PROTECTED]
Sent: de
the
> decision wether to log or not will be done, if the logging
> level, filters etc is set in the config file on another machine.
>
> * Minimal extra "fuzz" (managing clients and servers and
> config files spread over a big organizations many servers)
>
> So wha
15 matches
Mail list logo