Created
          June 14, 2011 13:00 
        
      - 
      
- 
        Save kpuputti/1024838 to your computer and use it in GitHub Desktop. 
    console.log wrapper
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var log = function () { | |
| if (window.console && window.console.log && window.console.log.apply) { | |
| var args = Array.prototype.slice.call(arguments); | |
| args.unshift('My app:'); | |
| console.log.apply(console, args); | |
| } | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment