(export, static) Level :number
This always logs to the console, even in Release mode. This should only be used for deprecation messages and things the app should never ignore.
This log is to aid *users* in debugging their content. This should be for logs about the content and what we do with it. For example, when we change streams or what we are choosing.
This log is for when an error occurs. This should always be accompanied with an error event, thrown exception, or rejected Promise. Logs are disabled in Release mode, so there should be other methods of detecting the error.
This log is for messages to the user about what is happening. For example, when we update a manifest or install a polyfill.
(export, static) setLevel(level)
Change the log level. Useful for debugging in uncompiled mode.
This log is for debugging Shaka Player itself. This may be logs about internal states or events. This may also be for more verbose logs about content, such as for segment appends.
This log is for tracing and debugging Shaka Player. These logs will happen a lot, for example, logging every segment append or every update check. These are mostly used for tracking which calls happen through the code.
This log is for possible errors or things that may be surprising to a user. For example, if we work around unusual or bad content, we should warn that they should fix their content. Deprecation messages and messages the app shouldn't ignore should use alwaysWarn instead.