Static Public Member Functions

static void  setLogLevel (@LogLevel int logLevel)
static void  v (String tag, String msg)
static void  d (String tag, String msg)
static void  i (String tag, String msg)
static void  w (String tag, String msg)
static void  e (String tag, String msg)
static void  e (String tag, String msg, Throwable t)

Static Public Attributes

static final int  NONE = Integer.MAX_VALUE
static final int  VERBOSE = Log.VERBOSE
static final int  DEBUG = Log.DEBUG
static final int  INFO = Log.INFO
static final int  WARN = Log.WARN
static final int  ERROR = Log.ERROR

Detailed Description

ORALogger class purpose is to print different level of logging under logcat.

Member Function Documentation

◆ d()

static void d ( String  tag,
String  msg 
)
static

Prints debug messages

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged. This value may be null.

◆ e() [1/2]

static void e ( String  tag,
String  msg 
)
static

Prints error messages

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged. This value may be null.

◆ e() [2/2]

static void e ( String  tag,
String  msg,
Throwable  t 
)
static

Prints error messages

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged. This value may be null.
t An exception to log This value may be null.

◆ i()

static void i ( String  tag,
String  msg 
)
static

Prints info messages

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged. This value may be null.

◆ setLogLevel()

static void setLogLevel ( @LogLevel int  logLevel )
static

Set the log level. The levels are NONE, VERBOSE, DEBUG, INFO, WARN and ERROR.

When you set one level, shows the messages for this level, as well as the message levels lower in this list. For example if you set log level as VERBOSE it will print all verbose, debug, info, warning and error messages DEBUG it will print all debug, info, warning and error messages INFO it will print info, warning and error messages. WARN it will print warning and error messages ERROR it will print only error messages. Setting NONE will disable all the log messages.

Parameters
logLevel log level

◆ v()

static void v ( String  tag,
String  msg 
)
static

Prints verbose messages

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged. This value may be null.

◆ w()

static void w ( String  tag,
String  msg 
)
static

Prints warning messages

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged. This value may be null.

Member Data Documentation

◆ DEBUG

final int DEBUG = Log.DEBUG
static

Log level for Debug messages

◆ ERROR

final int ERROR = Log.ERROR
static

Log level for Error messages

◆ INFO

final int INFO = Log.INFO
static

Log level for Info messages

◆ NONE

final int NONE = Integer.MAX_VALUE
static

No logging will be enabled

◆ VERBOSE

final int VERBOSE = Log.VERBOSE
static

Log level for Verbose messages

◆ WARN

final int WARN = Log.WARN
static

Log level for Warn messages

 

The documentation for this class was generated from the following file:
  • ORALogger.java