OK, now I changed the date format, set staticLogFileName to false, and
changed the file value (because I didn't like the old one). Now I've got
"timer_log.2004.10.27.1". Not sure where the trailing "1" comes from, but
it's acceptable to me. Now I just have to wait until midnight to see if it
roll
Thanks Nicko, that's the problem. I need to load the configuration
explicitly in NUnit.
Thanks.
-Original Message-
From: Nicko Cadell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 6:50 AM
To: Log4NET User
Subject: RE: basic issue: problem getting log output from my NUnit
t
Try adding
Nicko
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 27 October 2004 16:59
> To: log4net-user@logging.apache.org
> Subject: RE: RollingFileAppender question
>
> Currently it is not creating anything with the date in the
> filename, jus
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 AM
To: Log4
Neils,
I think you have to use .MM.dd as your date pattern, for details
see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
tml/frlrfsystemglobalizationdatetimeformatinfoclasstopic.asp
Is an output file being created with the current date in the file name?
One possi
Log4net uses a loosely typed dictionary to store additional logging
data. This is typically easier to work with than strongly typed objects.
The loggingEvent has a Properties map that you can use to store any
additional event specific data. The properties can be retrieved using
the %P{user} syntax
Nevermind,
I found the assembly attribute in the Simple module not the shared. Threw
me off but I think I have it now. Thanks.
Rich Denis
perotsystems(tm)
972.577.5869 Wk
[EMAIL PROTECTED]
-Original Message-
From: Denis, Rich
Sent: Wednesday, October 27, 2004 9:08 AM
To: Log4NET U
Thanks for the reply. So if I am reading this correctly and based on that
example, it would appear that I do not need to specify the domain to log to
if I create a logger in an assembly that has the domain attribute specified.
The only problem I see with the example is that there are no assembly
for instance you can add this to your testfixture :
[SetUp]
public void Setup()
{
DOMConfigurator.Configure();
...
}
or maybe more convenient, implement this once in a root class and have
your textfixture inherit from this root class.
> > -Original Message-
> > From: Steve Burket
renderedClass
Required attribute. Value must be the type name for the target type for
this renderer. If the type is not defined in the log4net assembly this
type name must be fully assembly qualified. This is the name of the type
that this renderer will render.
The renderedClass is the type th
How long is the project expected to be in an incubation period? Will there
be an updated roadmap or development status released?
Matthew Griffore
Steve,
How are you configuring log4net? You have your config in the app.config
file but you still need to tell log4net to load the configuration from
there (either using the DOMConfigurator methods or the
DOMConfiguratorAttribute).
Cheers,
Nicko
> -Original Message-
> From: Steve Burket
I have the following configuration for a RollingFileAppender, but it's not
working as (I) expected:
What I want is to have the log file roll over at midnight (and never
deleting a file automatically), creat
Title: OpenSource
Hi people
Has anyone added to log4net source code….
Like in CustomRenderes people like thibaut have added DictionaryRenderer
Credit:Thibaut Barrère I have attached the file:which anyone can add to log4net source
<>
MASTEK
"Making a valuable difference"
Mastek i
RemotingAppender
Config examples here:
http://logging.apache.org/log4net/release/config-examples.html#HC-150308
9
There is a fully working example in the log4net download:
log4net-1.2.0-beta8\examples\net\1.0\Remoting
Failing that there is always the source:
log4net-1.2.0-beta8\src\Appender\Remo
http://logging.apache.org/log4net/release/manual/configuration.html#HC-13011608
> -Original Message-
> From: Thibaut Barrère [mailto:[EMAIL PROTECTED]
> Sent: 26 October 2004 11:53
> To: [EMAIL PROTECTED]
> Cc: log4net-user@logging.apache.org
> Subject: Re: Object Renderer
>
> Guess fo
If 3 separate process try to obtain a write lock on the same file, the
first will get the lock, the other 2 will fail to open the file.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 26 October 2004 11:28
> To: Nicko Cadell
> Subject: Re:File handling:
>
Have a look at the log4net-1.2.0-beta8\examples\net\1.0\Domain example.
In this example there it a main app (SimpleApp) which configures itself
using the DOMConfigurator attribute. It also uses the SimpleModule
assembly which specifies the Domain attribute to put that assembly into
a separate doma
The FileAppender does not support limiting the output file size.
To limit the file size you need to use a RollingFileAppender and roll on
Size and set the file size to the limit you want.
Nicko
> -Original Message-
> From: Cristian Romanescu [mailto:[EMAIL PROTECTED]
> Sent: 23 October
The SMTPAppender just uses the system.web.mail package to send the mail.
If an error is being generated by log4net you will need to enable
internal debug to see it:
http://logging.apache.org/log4net/release/manual/faq.html#internalDebug
Nicko
> -Original Message-
> From: [EMAIL PROTECTE
Hi Amit
> 1)As specified I added DictinoryRenderer.cs class in log4net src
actually it's not necessary to do this; your DictionaryRenderer can be
just part of your own application assemblies. This avoid to recompile
log4net.
> 2)config settings : renderingClass="log4net.ObjectRenderer.Dictionary
Title: Query
Can anyone explain what the attribute renderedClass mean ?
I am unable to execute the same
renderer>
MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Softw
22 matches
Mail list logo