Class DefaultLogger
- java.lang.Object
-
- org.slf4j.helpers.MarkerIgnoringBase
-
- com.azure.android.core.logging.implementation.DefaultLogger
-
- All Implemented Interfaces:
java.io.Serializable
,org.slf4j.Logger
public final class DefaultLogger extends org.slf4j.helpers.MarkerIgnoringBase
This is a fluent logger helper class that implements the logging using the AndroidLog
class and its methods.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
-
Constructor Summary
Constructors Constructor Description DefaultLogger(java.lang.Class<?> clazz)
Construct DefaultLogger for the given class.DefaultLogger(java.lang.String name)
Construct DefaultLogger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String msg)
void
debug(java.lang.String format, java.lang.Object arg1)
void
debug(java.lang.String format, java.lang.Object[] argArray)
void
debug(java.lang.String format, java.lang.Object param1, java.lang.Object param2)
void
debug(java.lang.String msg, java.lang.Throwable t)
void
error(java.lang.String msg)
void
error(java.lang.String format, java.lang.Object arg)
void
error(java.lang.String format, java.lang.Object[] argArray)
void
error(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
error(java.lang.String msg, java.lang.Throwable t)
java.lang.String
getName()
void
info(java.lang.String msg)
void
info(java.lang.String format, java.lang.Object arg)
void
info(java.lang.String format, java.lang.Object[] argArray)
void
info(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
info(java.lang.String msg, java.lang.Throwable t)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
protected java.lang.Object
readResolve()
void
trace(java.lang.String msg)
void
trace(java.lang.String format, java.lang.Object param1)
void
trace(java.lang.String format, java.lang.Object[] argArray)
void
trace(java.lang.String format, java.lang.Object param1, java.lang.Object param2)
void
trace(java.lang.String msg, java.lang.Throwable t)
void
warn(java.lang.String msg)
void
warn(java.lang.String format, java.lang.Object arg)
void
warn(java.lang.String format, java.lang.Object[] argArray)
void
warn(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
warn(java.lang.String msg, java.lang.Throwable t)
-
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
-
-
-
Method Detail
-
isTraceEnabled
public boolean isTraceEnabled()
-
trace
public void trace(java.lang.String msg)
-
trace
public void trace(java.lang.String format, java.lang.Object param1)
-
trace
public void trace(java.lang.String format, java.lang.Object param1, java.lang.Object param2)
-
trace
public void trace(java.lang.String format, java.lang.Object[] argArray)
-
trace
public void trace(java.lang.String msg, java.lang.Throwable t)
-
isDebugEnabled
public boolean isDebugEnabled()
-
debug
public void debug(java.lang.String msg)
-
debug
public void debug(java.lang.String format, java.lang.Object arg1)
-
debug
public void debug(java.lang.String format, java.lang.Object param1, java.lang.Object param2)
-
debug
public void debug(java.lang.String format, java.lang.Object[] argArray)
-
debug
public void debug(java.lang.String msg, java.lang.Throwable t)
-
isInfoEnabled
public boolean isInfoEnabled()
-
info
public void info(java.lang.String msg)
-
info
public void info(java.lang.String format, java.lang.Object arg)
-
info
public void info(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
info
public void info(java.lang.String format, java.lang.Object[] argArray)
-
info
public void info(java.lang.String msg, java.lang.Throwable t)
-
isWarnEnabled
public boolean isWarnEnabled()
-
warn
public void warn(java.lang.String msg)
-
warn
public void warn(java.lang.String format, java.lang.Object arg)
-
warn
public void warn(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
warn
public void warn(java.lang.String format, java.lang.Object[] argArray)
-
warn
public void warn(java.lang.String msg, java.lang.Throwable t)
-
isErrorEnabled
public boolean isErrorEnabled()
-
error
public void error(java.lang.String msg)
-
error
public void error(java.lang.String format, java.lang.Object arg)
-
error
public void error(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
error
public void error(java.lang.String format, java.lang.Object[] argArray)
-
error
public void error(java.lang.String msg, java.lang.Throwable t)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.slf4j.Logger
-
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
-