com.firefly.server.utils.StatisticsUtils Maven / Gradle / Ivy
package com.firefly.server.utils;
import com.firefly.net.Session;
import com.firefly.utils.log.Log;
import com.firefly.utils.log.LogFactory;
public abstract class StatisticsUtils {
private static Log access = LogFactory.getInstance().getLog("firefly-access");
private static Log monitor = LogFactory.getInstance().getLog("firefly-monitor");
public static void saveRequestInfo(Object sid, Object remoteAddr, String method, Object uri, long timeDiff) {
access.info("request: [sessionId={}, remoteAddr={}, method={}, uri={}, timeDiff={}]", sid, remoteAddr, method, uri,
timeDiff);
}
public static void saveConnectionInfo(Session session) {
monitor.info("session: {}", session);
}
}