(function( $ ){ $.fn.openlayers = function( mapElementId, options ) { alert(console.log); console.log(options); ... } });
I
Add the following line before OpenLayer script to tell it not to override the console functions.