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
    • thread

      @NonNull public String thread
      Thread name (or id)
    • tr

      @Nullable public Throwable tr
      A throwable object for logging stack traces. May be null.
  • 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, @NonNull String thread)
      DEPRECATED - Construct the LogParameters object using LogParameters.Builder Construtct a LogParameters object.
      Parameters:
      module - LogModule that generated this log message. Must not be null.
      level - LogLevel at which this log message was generated. Must not be null.
      timestamp - Local Timestamp in YY-MM-DD HH:MM:SS.MMM format as a string. Must not be null. When empty, the SDK will set the current time as the timestamp.
      file - Source file that generated this log message. Must not be null.
      function - Method within which this log message was generated. Must not be null.
      line - Line number of the log message within the source file. Must not be null.
      tag - Metadata string. Must not be null.
      message - Log message text. Must not be null.
      thread - Thread name or id. Must not be null.
    • LogParameters

      public LogParameters(@NonNull LogLevel level, @NonNull String tag, @NonNull String message)
      DEPRECATED - Construct the LogParameters object using LogParameters.Builder 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 and the current thread's name is used as the thread parameter.
      Parameters:
      level - LogLevel at which this log message was generated. Must not be null.
      tag - String tag metadata. Must not be null.
      message - Log message text. Must not be null.