[T5] How to add context info to the log messages

2008-06-19 Thread karu3

Hello!

Can anyone think of an *elegant* way how to change the T5 loggers to include
some per request information (e.g. sessionid, or request.getRemoteAddress()
or something similar) in order to provide better traceability of webapp
events? Seems like a common problem.

I am not an expert on Tapestry 5 IoC but an elegant solution does not seem
to be so easily possible (LoggerSourceImpl is provided in RegistryBuilder
constructor):-(

Thanks,

Priit.



-- 
View this message in context: 
http://www.nabble.com/-T5--How-to-add-context-info-to-the-log-messages-tp18004137p18004137.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] How to add context info to the log messages

2008-06-19 Thread karu3

The best way to do it is with slf4j MDC class probably. Sorry, forget the
question, it is not Tapestry related. It can be done elegantly with logging
framework.



karu3 wrote:
 
 Hello!
 
 Can anyone think of an *elegant* way how to change the T5 loggers to
 include some per request information (e.g. sessionid, or
 request.getRemoteAddress() or something similar) in order to provide
 better traceability of webapp events? Seems like a common problem.
 
 I am not an expert on Tapestry 5 IoC but an elegant solution does not seem
 to be so easily possible (LoggerSourceImpl is provided in RegistryBuilder
 constructor):-(
 
 Thanks,
 
 Priit.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--How-to-add-context-info-to-the-log-messages-tp18004137p18005738.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5: how to get all embedded component ids

2008-01-04 Thread karu3

Hello!

I am browsing the T5 API and somehow do not understand how is it possible to
get all (e.g. defined in a template) embedded component ids for a given
component.

There is ComponentResources.getComponentModel().getEmbeddedComponentIds()
but it returns only those embedded component ids that are defined with
annotation in a component class. 

How is it possible to get embedded component ids that only appear in a
template?

Thanks,

Priit.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-how-to-get-all-embedded-component-ids-tp14614938p14614938.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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