public final class Log extends Object
Modifier and Type | Method and Description |
---|---|
static void |
d(LogDomain domain,
String msg)
Send a DEBUG message.
|
static void |
d(LogDomain domain,
String msg,
Object... args)
Send a DEBUG message.
|
static void |
d(LogDomain domain,
String msg,
Throwable err)
Send a DEBUG message and log the exception.
|
static void |
d(LogDomain domain,
String msg,
Throwable err,
Object... args)
Send a DEBUG message and log the exception.
|
static void |
e(LogDomain domain,
String msg)
Send an ERROR message.
|
static void |
e(LogDomain domain,
String msg,
Object... args)
Send a ERROR message.
|
static void |
e(LogDomain domain,
String msg,
Throwable err)
Send a ERROR message and log the exception.
|
static void |
e(LogDomain domain,
String msg,
Throwable err,
Object... args)
Send a ERROR message and log the exception.
|
static String |
formatStandardMessage(String msg,
Object... args) |
static String |
getC4DomainForLoggingDomain(LogDomain domain) |
static LogDomain |
getLoggingDomainForC4Domain(String c4Domain) |
static LogLevel |
getLogLevelForC4Level(int c4Level) |
static void |
i(LogDomain domain,
String msg)
Send an INFO message.
|
static void |
i(LogDomain domain,
String msg,
Object... args)
Send an INFO message.
|
static void |
i(LogDomain domain,
String msg,
Throwable err)
Send a INFO message and log the exception.
|
static void |
i(LogDomain domain,
String msg,
Throwable err,
Object... args)
Send a INFO message and log the exception.
|
static void |
info(LogDomain domain,
String msg) |
static void |
info(LogDomain domain,
String msg,
Throwable err) |
static void |
initLogging() |
static void |
initLogging(Map<String,String> errorMessages)
Setup logging.
|
static String |
lookupStandardMessage(String msg) |
static void |
v(LogDomain domain,
String msg)
Send a VERBOSE message.
|
static void |
v(LogDomain domain,
String msg,
Object... args)
Send a VERBOSE message.
|
static void |
v(LogDomain domain,
String msg,
Throwable err)
Send a VERBOSE message and log the exception.
|
static void |
v(LogDomain domain,
String msg,
Throwable err,
Object... args)
Send a VERBOSE message and log the exception.
|
static void |
w(LogDomain domain,
String msg)
Send a WARN message.
|
static void |
w(LogDomain domain,
String msg,
Object... args)
Send a WARN message.
|
static void |
w(LogDomain domain,
String msg,
Throwable err)
Send a WARN message and log the exception.
|
static void |
w(LogDomain domain,
String msg,
Throwable err,
Object... args)
Send a WARN message and log the exception.
|
static void |
warn() |
public static void initLogging(@NonNull Map<String,String> errorMessages)
public static void initLogging()
public static void d(@NonNull LogDomain domain, @NonNull String msg)
domain
- The log domain.msg
- The message you would like logged.public static void d(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err)
domain
- The log domain.msg
- The message you would like logged.err
- An exception to logpublic static void d(@NonNull LogDomain domain, @NonNull String msg, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.args
- Variable number of Object args to be used as params to formatString.public static void d(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.err
- An exception to logargs
- Variable number of Object args to be used as params to formatString.public static void v(@NonNull LogDomain domain, @NonNull String msg)
domain
- The log domain.msg
- The message you would like logged.public static void v(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err)
domain
- The log domain.msg
- The message you would like logged.err
- An exception to logpublic static void v(@NonNull LogDomain domain, @NonNull String msg, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.args
- Variable number of Object args to be used as params to formatString.public static void v(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.err
- An exception to logargs
- Variable number of Object args to be used as params to formatString.public static void i(@NonNull LogDomain domain, @NonNull String msg)
domain
- The log domain.msg
- The message you would like logged.public static void i(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err)
domain
- The log domain.msg
- The message you would like logged.err
- An exception to logpublic static void info(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err)
public static void i(@NonNull LogDomain domain, @NonNull String msg, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.args
- Variable number of Object args to be used as params to formatString.public static void i(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.err
- An exception to logargs
- Variable number of Object args to be used as params to formatString.public static void w(@NonNull LogDomain domain, @NonNull String msg)
domain
- The log domain.msg
- The message you would like logged.public static void w(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err)
domain
- The log domain.msg
- The message you would like logged.err
- An exception to logpublic static void w(@NonNull LogDomain domain, @NonNull String msg, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.args
- Variable number of Object args to be used as params to formatString.public static void w(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.err
- An exception to logargs
- Variable number of Object args to be used as params to formatString.public static void e(@NonNull LogDomain domain, @NonNull String msg)
domain
- The log domain.msg
- The message you would like logged.public static void e(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err)
domain
- The log domain.msg
- The message you would like logged.err
- An exception to logpublic static void e(@NonNull LogDomain domain, @NonNull String msg, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.args
- Variable number of Object args to be used as params to formatString.public static void e(@NonNull LogDomain domain, @NonNull String msg, @Nullable Throwable err, Object... args)
domain
- The log domain.msg
- The string you would like logged plus format specifiers.err
- An exception to logargs
- Variable number of Object args to be used as params to formatString.@NonNull public static String formatStandardMessage(@Nullable String msg, Object... args)
@NonNull public static LogLevel getLogLevelForC4Level(int c4Level)
@NonNull public static String getC4DomainForLoggingDomain(@NonNull LogDomain domain)
@NonNull public static LogDomain getLoggingDomainForC4Domain(@NonNull String c4Domain)
public static void warn()