Package com.dotmarketing.loggers

Examples of com.dotmarketing.loggers.DatabaseClickstreamLogger


  public static void flushClickStream(Clickstream stream) {
    if(Config.getBooleanProperty("ENABLE_CLICKSTREAM_TRACKING", false)){
     
      int minToLog = Config.getIntProperty("MIN_CLICKSTREAM_REQUESTS_TO_SAVE", 2);
     
      DatabaseClickstreamLogger dblogger = new DatabaseClickstreamLogger();
      try {
        if (stream != null
            && stream.getClickstreamRequests() != null
            && stream.getClickstreamRequests().size() >= minToLog) {
          dblogger.log(stream);
        }
      } catch (Exception e) {
        Logger.error(ClickstreamListener.class, e.getMessage(), e);
      }
    }
View Full Code Here

TOP

Related Classes of com.dotmarketing.loggers.DatabaseClickstreamLogger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.