Carsten,

I don't know C2 well enough to just change some of the core code, but i
think that it is nothing more than changing following line in
CocoonServlet.java
            formatter.setFormat( "%7.7{priority} %5.5{time}
[%8.8{category}] " +
                                 "(%{context}): %{message}\\n%{throwable}"
);

and to define the actual format in web.xml (eg an init-param named
log-format). If no format is specified the above default format will be
used.

The biggest problem then might be how to make it more user friendly, if not
possible how to document it so that everybody can use easily (eg what is
possible besides {priority}, {time}, ... and how to format it explicitly)


Sven



-----Original Message-----
From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: AW: [RT C2]: Logging information


> Sven Beauprez  wrote:
> 
> Carsten,
> 
> It would be nice if we were able to configure this ourselves. 
> Let's say that
> there are a few predefined fields we can choose from and that we 
> can define
> the structure of the cocoon.log file by choosing a combination of these
> fields.
> 
Yes, exactly that was it what I thought of. 
I know we could define an own Formatter and Logger but I don't know
how to get the values info the logger.


Carsten

> Sven
> 
> 
> -----Original Message-----
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 10:07 AM
> To: [EMAIL PROTECTED]
> Subject: [RT C2]: Logging information
> 
> 
> Hi C2ers,
> 
> what do you think about enhancing the information logged to the
> cocoon.log?
> For debugging etc. it would help to have a better formatted
> time information, the current url request perhaps the current
> ip address of the client etc. 
> So I would suggest to pass the current environment/objectModel
> to the logging methods and they can extract everything they
> need from it and log it.
> 
> Any suggestions? Comments? etc?
> 
> 
> Carsten 
> 
> Open Source Group                        sunShine - b:Integrated
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de                          mailto: [EMAIL PROTECTED] 
> ================================================================
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to