com.android.utils
Class NullLogger

java.lang.Object
  extended by com.android.utils.NullLogger
All Implemented Interfaces:
ILogger

public class NullLogger
extends java.lang.Object
implements ILogger

Dummy implementation of an ILogger.

Use getLogger() to get a default instance of this NullLogger.


Constructor Summary
NullLogger()
           
 
Method Summary
 void error(java.lang.Throwable t, java.lang.String errorFormat, java.lang.Object... args)
          Prints an error message.
static ILogger getLogger()
           
 void info(java.lang.String msgFormat, java.lang.Object... args)
          Prints an information message.
 void verbose(java.lang.String msgFormat, java.lang.Object... args)
          Prints a verbose message.
 void warning(java.lang.String warningFormat, java.lang.Object... args)
          Prints a warning message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLogger

public NullLogger()
Method Detail

getLogger

public static ILogger getLogger()

error

public void error(@Nullable
                  java.lang.Throwable t,
                  @Nullable
                  java.lang.String errorFormat,
                  java.lang.Object... args)
Description copied from interface: ILogger
Prints an error message.

Specified by:
error in interface ILogger
Parameters:
t - is an optional Throwable or Exception. If non-null, its message will be printed out.
errorFormat - is an optional error format. If non-null, it will be printed using a Formatter with the provided arguments.
args - provides the arguments for errorFormat.

warning

public void warning(@NonNull
                    java.lang.String warningFormat,
                    java.lang.Object... args)
Description copied from interface: ILogger
Prints a warning message.

Specified by:
warning in interface ILogger
Parameters:
warningFormat - is a string format to be used with a Formatter. Cannot be null.
args - provides the arguments for warningFormat.

info

public void info(@NonNull
                 java.lang.String msgFormat,
                 java.lang.Object... args)
Description copied from interface: ILogger
Prints an information message.

Specified by:
info in interface ILogger
Parameters:
msgFormat - is a string format to be used with a Formatter. Cannot be null.
args - provides the arguments for msgFormat.

verbose

public void verbose(@NonNull
                    java.lang.String msgFormat,
                    java.lang.Object... args)
Description copied from interface: ILogger
Prints a verbose message.

Specified by:
verbose in interface ILogger
Parameters:
msgFormat - is a string format to be used with a Formatter. Cannot be null.
args - provides the arguments for msgFormat.