Provides a LoggerInterface interface. This interface contains a log method that is invoked with a LogParameters object every time a log message becomes available. The LogParameters object contains all the information relevant to the log message being delivered.
The Android SDK internally implements the LoggerInterface to provide default logging capabilities to stdout using android.util.Log.
Provides a Voice.SetLogger(LoggerInterface) method that allows setting a custom logger that conforms to LoggerInterface to which log messages will be delivered.
Provides a Voice.GetLogger() method that returns the logger that was previously set with setLogger. If no custom logger was set, this method returns the default logger currently used by the SDK.
Users can send their messages to be logged by the SDK using Voice.GetLogger().log(LogParameters). This logs the message using the SDK's default logger.
Users can also implement custom loggers that conform to LoggerInterface to customize the logging mechanism, for eg., logging to a file, sending the logs to a server, etc.
The existing Logger class is deprecated and will be removed in the next major version release.
Contributing to Twilio
All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.
[x] I acknowledge that all my contributions will be made under the project's license.
6.3.0
API Updates
LoggerInterface
interface. This interface contains alog
method that is invoked with aLogParameters
object every time a log message becomes available. TheLogParameters
object contains all the information relevant to the log message being delivered.LoggerInterface
to provide default logging capabilities to stdout using android.util.Log.Voice.SetLogger(LoggerInterface)
method that allows setting a custom logger that conforms toLoggerInterface
to which log messages will be delivered.Voice.GetLogger()
method that returns the logger that was previously set withsetLogger
. If no custom logger was set, this method returns the default logger currently used by the SDK.Voice.GetLogger().log(LogParameters)
. This logs the message using the SDK's default logger.LoggerInterface
to customize the logging mechanism, for eg., logging to a file, sending the logs to a server, etc.Logger
class is deprecated and will be removed in the next major version release.Contributing to Twilio