Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.util.NativeLogger Class Reference
Collaboration diagram for com.cloudera.impala.util.NativeLogger:

Static Public Member Functions

static void LogToGlog (int severity, String msg, String filename, int line)
 

Static Private Member Functions

static native void Log (int severity, String msg, String filename, int line)
 
static synchronized void loadLibrary ()
 

Static Private Attributes

static final Logger LOG = LoggerFactory.getLogger(NativeLogger.class)
 
static boolean loaded_ = false
 

Detailed Description

Class that manages loading and calling the native logging library to forward log4j log messages to be logged by glog.

Definition at line 24 of file NativeLogger.java.

Member Function Documentation

static synchronized void com.cloudera.impala.util.NativeLogger.loadLibrary ( )
inlinestaticprivate

Loads the native logging support library.

Definition at line 43 of file NativeLogger.java.

References com.cloudera.impala.util.NativeLogger.loaded_.

Referenced by com.cloudera.impala.util.NativeLogger.LogToGlog().

static native void com.cloudera.impala.util.NativeLogger.Log ( int  severity,
String  msg,
String  filename,
int  line 
)
staticprivate
static void com.cloudera.impala.util.NativeLogger.LogToGlog ( int  severity,
String  msg,
String  filename,
int  line 
)
inlinestatic

Member Data Documentation

boolean com.cloudera.impala.util.NativeLogger.loaded_ = false
staticprivate

Definition at line 26 of file NativeLogger.java.

Referenced by com.cloudera.impala.util.NativeLogger.loadLibrary().

final Logger com.cloudera.impala.util.NativeLogger.LOG = LoggerFactory.getLogger(NativeLogger.class)
staticprivate

Definition at line 25 of file NativeLogger.java.


The documentation for this class was generated from the following file: