Islam AbdelRahman
7c01d65344
[Fix Java] Remove duplicate cases in LoggerJniCallback::Logv
...
Summary: Remove duplicate cases in LoggerJniCallback::Logv and fix complication error
Test Plan: make jclean rocksdbjava jtest -j4
Reviewers: adamretter, andrewkr, sdong
Reviewed By: sdong
Subscribers: andrewkr, dhruba
Differential Revision: https://reviews.facebook.net/D61335
8 years ago
Adam Retter
811ee21112
Bugfix to ensure that logging can be achieved from threads that are not known to the JVM ( #1106 )
8 years ago
Adam Retter
972c895c35
Previously WARN level logging became FATAL level logging in the Java API ( #1089 )
9 years ago
Adam Retter
72c73cdc8b
Java API - Add missing HEADER_LEVEL logging ( #1104 )
9 years ago
Adam Retter
18eb563058
Improve the speed and synchronization around the construction of Java/JNI objects
9 years ago
Baraa Hamodi
21e95811d1
Updated all copyright headers to the new format.
9 years ago
Yueh-Hsuan Chiang
0e6e5472e1
Fixed a compile warning in rocksjni/loggerjnicallback.cc
...
Summary:
This patch fixes the following compile warning.
java/rocksjni/loggerjnicallback.cc: In constructor ‘rocksdb::LoggerJniCallback::LoggerJniCallback(JNIEnv*, jobject)’:
java/rocksjni/loggerjnicallback.cc:19:14: warning: unused variable ‘rs’ [-Wunused-variable]
const jint rs = env->GetJavaVM(&m_jvm);
^
Test Plan: make rocksdbjavastaticrelease
Reviewers: sdong, anthony, IslamAbdelRahman, igor
Reviewed By: igor
Subscribers: dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D45981
9 years ago
Yueh-Hsuan Chiang
40cd91b7fe
Fixed compile warning in rocksdbjava
...
Summary:
Fixed the following compile warning in rocksdbjava:
java/rocksjni/comparatorjnicallback.cc:20:14: warning: unused variable ‘rs’ [-Wunused-variable]
const jint rs = env->GetJavaVM(&m_jvm);
^
java/rocksjni/comparatorjnicallback.cc: In member function ‘JNIEnv* rocksdb::BaseComparatorJniCallback::getJniEnv() const’:
java/rocksjni/comparatorjnicallback.cc:45:8: warning: unused variable ‘rs’ [-Wunused-variable]
jint rs = m_jvm->AttachCurrentThread(reinterpret_cast<void **>(&env), NULL);
^
java/rocksjni/loggerjnicallback.cc: In constructor ‘rocksdb::LoggerJniCallback::LoggerJniCallback(JNIEnv*, jobject)’:
java/rocksjni/loggerjnicallback.cc:19:14: warning: unused variable ‘rs’ [-Wunused-variable]
const jint rs = env->GetJavaVM(&m_jvm);
^
java/rocksjni/loggerjnicallback.cc: In member function ‘JNIEnv* rocksdb::LoggerJniCallback::getJniEnv() const’:
java/rocksjni/loggerjnicallback.cc:33:8: warning: unused variable ‘rs’ [-Wunused-variable]
jint rs = m_jvm->AttachCurrentThread(reinterpret_cast<void **>(&env), NULL);
^
Test Plan: make rocksdbjava -j32
Reviewers: sdong, anthony, IslamAbdelRahman, igor
Reviewed By: igor
Subscribers: dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D45891
9 years ago
fyrz
57f2a00c6f
RocksJava - JNI Logger callback
...
Summary:
Within this commit a new AbstractLogger was introduced
which allows to handle log messages at an application level.
Log messages are passed up to Java using a JNI callback.
This allows a Java-Developer to use common Java APIs for log
messages e.g. SLF4J, LOG4J, etc. Within this commit no new
dependencies were introduced, which keeps the RocksDB API clean
and doesn`t force a developer to use a predefined high-level Java API.
Another feature is to dynamically set a custom loggers verbosity at
runtime using its public method `setInfoLogLevel` and to retrieve
the currently active level using the `infoLogLevel` method.
Test Plan:
make clean jclean rocksdbjava jtest
mvn -f rocksjni.pom package
Reviewers: adamretter, ankgup87, yhchiang
Subscribers: dhruba
Differential Revision: https://reviews.facebook.net/D34755
10 years ago
fyrz
814627af3d
[RocksJava] Change log level at runtime in custom logger
...
This commit introduces the possibility to change the log level
of a used custom logger at runtime.
10 years ago
fyrz
a3bd4142f2
[RocksJava] Logging JNI callback
...
Within this commit a new AbstractLogger was introduced
which pushes info log messages all the way up to Java.
10 years ago