All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.server.utils.StatisticsUtils Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
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);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy