Skip to content

Commit

Permalink
Export videojs.log
Browse files Browse the repository at this point in the history
Sometimes you want to prefix all your console logs with VIDEOJS:
  • Loading branch information
dmlap committed Jul 7, 2015
1 parent 49fbea6 commit 2d335fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@ videojs.addLanguage = function(code, data){
return merge(globalOptions.languages, { [code]: data })[code];
};

/**
* Log debug messages.
*
* @param {...Object} messages One or more messages to log
*/
videojs.log = log;

// REMOVING: We probably should add this to the migration plugin
// // Expose but deprecate the window[componentName] method for accessing components
// Object.getOwnPropertyNames(Component.components).forEach(function(name){
Expand Down

0 comments on commit 2d335fa

Please sign in to comment.