If I were in you, I would give another chance to Tomcat valve; unfortunately, I 
am not so expert in that field. 

Avoiding the Tomcat approach, I can offer you other 2 Java-ways: 
1) Easy: I would subclass the SearchResultModel class with a new 
LoggingSearchResultModel overriding the key method: 

[code]public String getQueryStr() {
  return MgnlContext.getParameter("queryStr");
}[/code]

to 

[code]public String getQueryStr() {
  writeToLog(MgnlContext.getParameter("queryStr"));
  return MgnlContext.getParameter("queryStr");
}[/code]

2) Intermediate: I would add a logger filter, see here for more details: 

[url=http://maips21.altervista.org/wordpress/2011/10/26/loggingfilter-in-magnolia-a-simple-way-to-monitor-things/]http://maips21.altervista.org/wordpress/2011/10/26/loggingfilter-in-magnolia-a-simple-way-to-monitor-things/[/url]

HTH, Matteo

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=2a320e9b-3e9b-4e9f-acf9-088c65cd45c9


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to