title: Design pattern for page logging
body: <p>I am creating my website using spring.
  I am thinking of implementing a good design pattern for logging data for each page hit.
  These logs are very crucial for identifying the user pattern etc. 
  There is a set of common parameters that I need to log for each page hit but apart from common parameters, each page have a different parameter to be logged.</p>
  
  <p>I am thinking of what design pattern should I implement for achieving this?</p>
  
  <p>I thought of using stratergy Pattern but I didn't actually like it much.</p>
  
  <p>For eg. parameter A,B,C are common and in addition to these my 
     Search page logs F,G,H
     Browse page logs I,J,K</p>
  
  <pre><code>public interface CommonParameters {
      void logCommonParameters(String a, String b, String c);
  }
  
  public interface SearPageParameters inherits CommonParameters {
      void logSearchParameters(String F, String G, String H);
  }
  
  public interface BrowsePageParameters inherits CommonParameters {
      void logBrowsePageParameters(String I, String J, String K);
  }
  
  public class LogHelper {
      CommonParameters commonParameters;
  }
  </code></pre>
  
  <p>But this requires classes to implement BrowsePageParameters so that I can instantiate it in LogHelper.
  I don't want to create a class for each Page.
  Any suggestions on what design pattern should I follow for this?</p>