Package com.twilio.voice
Class LogParameters
java.lang.Object
com.twilio.voice.LogParameters
Represents parameters related to a log message.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionSource file that generated this log messageMethod within which this log message was generatedLogLevel
at which this log message was generatedint
Line number of the log message within the source fileLog message textLogModule
that generated this log messageA customized string metadata that is defined by the log message generatorThread name (or id)Local Timestamp in YY-MM-DD HH:MM:SS.MMM format as a stringA throwable object for logging stack traces. -
Constructor Summary
ConstructorDescriptionLogParameters
(LogLevel level, String tag, String message) DEPRECATED - Construct theLogParameters
object usingLogParameters.Builder
Construct aLogParameters
object.LogParameters
(LogModule module, LogLevel level, String timestamp, String file, String function, int line, String tag, String message, String thread) DEPRECATED - Construct theLogParameters
object usingLogParameters.Builder
Construtct aLogParameters
object. -
Method Summary
-
Field Details
-
module
LogModule
that generated this log message -
level
LogLevel
at which this log message was generated -
timestamp
Local Timestamp in YY-MM-DD HH:MM:SS.MMM format as a string -
file
Source file that generated this log message -
function
Method within which this log message was generated -
line
public int lineLine number of the log message within the source file -
tag
A customized string metadata that is defined by the log message generator -
message
Log message text -
thread
Thread name (or id) -
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 theLogParameters
object usingLogParameters.Builder
Construtct aLogParameters
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
DEPRECATED - Construct theLogParameters
object usingLogParameters.Builder
Construct aLogParameters
object. This constructor requires the level, tag, and message arguments. Module defaults toLogModule.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.
-