Android application layers log print function
1. HAL layer
Header: #include <utils / Log.h>
The levels of the printing method
VERBOSE LOGV()
DEBUG LOGD()
INFORMATION LOG ()
WARN LOGW()
ERROR LOGE()
method:
LOGD("%d, %s", int, char* )
2. JNI layer
Header: #include <utils / Log.h>
The levels of the printing method
VERBOSE LOGV()
DEBUG LOGD()
INFORMATION LOG ()
WARN LOGW()
ERROR LOGE()
method:
LOGD("%d, %s", int, char* )
3. FRAMEWORK layer
import android.util.Slog;
The levels of the printing method
VERBOSE Slog.v()
DEBUG Slog.d()
INFO Slog.i ()
WARN Slog.w()
ERROR Slog.e()
method:
Slog.d(TAG, "something to say.");
4. JAVA layer
import android.util.Log;
The levels of the printing method
VERBOSE Log.v()
DEBUG Log.d()
INFO Log.i()
WARN Log.w()
ERROR Log.e()
method:
Log.d(TAG, "something to say.");