From 2d335fa7380d505d5d5f4c6d57f34d29e359a3a8 Mon Sep 17 00:00:00 2001 From: David LaPalomento Date: Tue, 7 Jul 2015 17:23:07 -0400 Subject: [PATCH] Export videojs.log Sometimes you want to prefix all your console logs with VIDEOJS: --- src/js/video.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/js/video.js b/src/js/video.js index 38142566a3..831a527d1e 100644 --- a/src/js/video.js +++ b/src/js/video.js @@ -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){