Adding logging, using Rails logger if called inside Rails
.identify returns nil for unsupported formats