Implement metrics package with usage log function