01: /* Copyright 2002 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.services.stats;
07:
08: import org.apache.commons.logging.Log;
09: import org.apache.commons.logging.LogFactory;
10:
11: /**
12: * Logs portal statistics to the portal's log as info.
13: * @author Ken Weiner, kweiner@unicon.net
14: * @version $Revision: 36546 $
15: *
16: * @deprecated Use LoggingEventHandler. IStatsRecorder implementation is replaced with a much more flexible system based on the Spring ApplicationEventPublisher
17: * and Event Listeners. For more information see:
18: * http://www.ja-sig.org/wiki/display/UPC/Proposal+to+Deprecate+IStatsRecorder
19: */
20: public class LoggingStatsRecorder extends MessageStatsRecorder {
21:
22: private static final Log log = LogFactory
23: .getLog(LoggingStatsRecorder.class);
24:
25: public LoggingStatsRecorder() {
26: }
27:
28: /**
29: * Prints portal statistics messages to the portal log.
30: * @param message, the message to print
31: */
32: protected void outputMessage(String message) {
33: log.info(message);
34: }
35: }
|