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 LogLevel enum matching the specified letter.

static Log.LogLevel getByLetterString(String letter)

Returns the LogLevel enum matching the specified letter.

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 LogLevel.

String getStringValue()

Returns a non translated string representing the LogLevel.

static Log.LogLevel valueOf(String name)
static final LogLevel[] values()

Enum values

ASSERT

public static final Log.LogLevel ASSERT

DEBUG

public static final Log.LogLevel DEBUG

ERROR

public static final Log.LogLevel ERROR

INFO

public static final Log.LogLevel INFO

VERBOSE

public static final Log.LogLevel VERBOSE

WARN

public static final Log.LogLevel WARN

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

values

public static final LogLevel[] values ()

Returns
LogLevel[]