Class LogParameters

java.lang.Object
com.twilio.voice.LogParameters

public class LogParameters extends Object
Represents parameters related to a log message.
  • Field Details

    • module

      @NonNull public LogModule module
      LogModule that generated this log message
    • level

      @NonNull public LogLevel level
      LogLevel at which this log message was generated
    • timestamp

      @NonNull public String timestamp
      Local Timestamp in YY-MM-DD HH:MM:SS.MMM format as a string
    • file

      @NonNull public String file
      Source file that generated this log message
    • function

      @NonNull public String function
      Method within which this log message was generated
    • line

      public int line
      Line number of the log message within the source file
    • tag

      @NonNull public String tag
      A customized string metadata that is defined by the log message generator
    • message

      @NonNull public String message
      Log message text
  • Constructor Details

    • LogParameters

      public LogParameters(@NonNull LogModule module, @NonNull LogLevel level, @NonNull String timestamp, @NonNull String file, @NonNull String function, int line, @NonNull String tag, @NonNull String message)
      Construtct a LogParameters object.
      Parameters:
      module - LogModule that generated this log message. Cannot be null.
      level - LogLevel at which this log message was generated. Cannot be null.
      timestamp - Local Timestamp in YY-MM-DD HH:MM:SS.MMM format as a string. Cannot be null. When empty, the SDK will set the current time as the timestamp.
      file - Source file that generated this log message. Cannot be null.
      function - Method within which this log message was generated. Cannot be null.
      line - Line number of the log message within the source file. Cannot be null.
      tag - Metadata string. Cannot be null.
      message - Log message text. Cannot be null.
    • LogParameters

      public LogParameters(@NonNull LogLevel level, @NonNull String tag, @NonNull String message)
      Construct a LogParameters object. This constructor requires the level, tag, and message arguments. Module defaults to LogModule.PLATFORM. File and function parameters default to empty strings and line number defaults to zero. The current time is used as the timestamp parameter.
      Parameters:
      level - LogLevel at which this log message was generated. Cannot be null.
      tag - String tag metadata. Cannot be null.
      message - Log message text. Cannot be null.