public class LogHelper extends Object
Constructor and Description |
---|
LogHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
logError(org.osgi.framework.BundleContext pBundleContext,
String pMessage,
Throwable pThrowable)
Log error to a logging service (if available), otherwise log to std error
|
static void |
logError(String pMessage,
Throwable pThrowable)
Log error to a logging service (if available), otherwise log to std error
|
public static void logError(String pMessage, Throwable pThrowable)
pMessage
- message to logpThrowable
- an exception to logpublic static void logError(org.osgi.framework.BundleContext pBundleContext, String pMessage, Throwable pThrowable)
pBundleContext
- bundle context to lookup LogServicepMessage
- message to logpThrowable
- an exception to logCopyright © 2019. All rights reserved.