Index: trunk/extensions/UploadWizard/resources/mw.Log.js |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | * @param {String} string String to output to console |
13 | 13 | */ |
14 | 14 | mw.log = function( s, level ) { |
15 | | - |
| 15 | + |
16 | 16 | if ( typeof level === 'undefined' ) { |
17 | 17 | level = 30; |
18 | 18 | } |
— | — | @@ -58,11 +58,11 @@ |
59 | 59 | } |
60 | 60 | }; |
61 | 61 | |
62 | | - mw.log.NONE = 0; |
| 62 | + mw.log.level = mw.log.NONE = 0; |
63 | 63 | mw.log.FATAL = 10; |
64 | 64 | mw.log.WARN = 20; |
65 | 65 | mw.log.INFO = 30; |
66 | | - mw.log.level = mw.log.ALL = 100; |
| 66 | + mw.log.ALL = 100; |
67 | 67 | |
68 | 68 | mw.log.fatal = function( s ) { |
69 | 69 | mw.log( s, mw.log.FATAL ); |