Package com.twilio.voice
Class LogParameters
java.lang.Object
com.twilio.voice.LogParameters
Represents parameters related to a log message.
-
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 generatorLocal Timestamp in YY-MM-DD HH:MM:SS.MMM format as a string -
Constructor Summary
ConstructorDescriptionLogParameters
(LogLevel level, String tag, String message) Construct aLogParameters
object.LogParameters
(LogModule module, LogLevel level, String timestamp, String file, String function, int line, String tag, String message) 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
-
-
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 aLogParameters
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
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.- 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.
-