Log.LogLevel
public
static
final
enum
Log.LogLevel
extends Enum<Log.LogLevel>
java.lang.Object | ||
↳ | java.lang.Enum<com.android.tradefed.log.Log.LogLevel> | |
↳ | com.android.tradefed.log.Log.LogLevel |
Log Level enum.
Summary
Enum values | |
---|---|
Log.LogLevel |
ASSERT
|
Log.LogLevel |
DEBUG
|
Log.LogLevel |
ERROR
|
Log.LogLevel |
INFO
|
Log.LogLevel |
VERBOSE
|
Log.LogLevel |
WARN
|
Public methods | |
---|---|
static
Log.LogLevel
|
convertFromDdmlib(Log.LogLevel level)
|
static
Log.LogLevel
|
getByLetter(char letter)
Returns the |
static
Log.LogLevel
|
getByLetterString(String letter)
Returns the |
static
Log.LogLevel
|
getByString(String value)
|
int
|
getPriority()
Returns the numerical value of the priority. |
char
|
getPriorityLetter()
Returns the letter identifying the priority of the |
String
|
getStringValue()
Returns a non translated string representing the LogLevel. |
static
Log.LogLevel
|
valueOf(String name)
|
static
final
LogLevel[]
|
values()
|
Enum values
Public methods
convertFromDdmlib
public static Log.LogLevel convertFromDdmlib (Log.LogLevel level)
Parameters | |
---|---|
level |
Log.LogLevel |
Returns | |
---|---|
Log.LogLevel |
getByLetter
public static Log.LogLevel getByLetter (char letter)
Returns the LogLevel
enum matching the specified letter.
Parameters | |
---|---|
letter |
char : the letter matching a LogLevel enum |
Returns | |
---|---|
Log.LogLevel |
a LogLevel object or null if no match were found. |
getByLetterString
public static Log.LogLevel getByLetterString (String letter)
Returns the LogLevel
enum matching the specified letter.
The letter is passed as a String
argument, but only the first character is
used.
Parameters | |
---|---|
letter |
String : the letter matching a LogLevel enum |
Returns | |
---|---|
Log.LogLevel |
a LogLevel object or null if no match were found. |
getByString
public static Log.LogLevel getByString (String value)
Parameters | |
---|---|
value |
String |
Returns | |
---|---|
Log.LogLevel |
getPriority
public int getPriority ()
Returns the numerical value of the priority.
Returns | |
---|---|
int |
getPriorityLetter
public char getPriorityLetter ()
Returns the letter identifying the priority of the LogLevel
.
Returns | |
---|---|
char |
getStringValue
public String getStringValue ()
Returns a non translated string representing the LogLevel.
Returns | |
---|---|
String |
valueOf
public static Log.LogLevel valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
Log.LogLevel |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-08-13 UTC.