| Constructor and Description |
|---|
HttpKitLogger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
error(String msg)
Logs an error with Log.e();
|
static void |
error(String msg,
Throwable t)
Logs an exception
|
static void |
error(Throwable t)
Logs an error as Log.e()
|
static boolean |
isLoggingEnabled() |
static void |
log(String msg)
Prints log if it has been enabled with {@link #setLoggingEnabled(boolean)
|
static void |
log(Throwable e)
Logs an
Throwable exception |
static void |
setLogging(boolean enabled)
Enable or disable logging
|
static void |
setLogTag(String tag)
Set the tag, that is used for the logger
|
public static void log(String msg)
msg - public static boolean isLoggingEnabled()
public static void setLogging(boolean enabled)
enabled - true to enable, false to disablepublic static void setLogTag(String tag)
tag - public static void error(String msg)
msg - public static void error(Throwable t)
t - Copyright © 2015 Hannes Dorfmann. All rights reserved.