本文整理匯總了Java中com.orhanobut.logger.Logger.v方法的典型用法代碼示例。如果您正苦於以下問題:Java Logger.v方法的具體用法?Java Logger.v怎麽用?Java Logger.v使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.orhanobut.logger.Logger
的用法示例。
在下文中一共展示了Logger.v方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: intercept
import com.orhanobut.logger.Logger; //導入方法依賴的package包/類
@Override
public Response intercept(Chain chain) throws IOException {
final Request request = chain.request();
final Response response = chain.proceed(request);
final ResponseBody responseBody = response.body();
final long contentLength = responseBody.contentLength();
BufferedSource source = responseBody.source();
source.request(Long.MAX_VALUE); // Buffer the entire body.
Buffer buffer = source.buffer();
Charset charset = Charset.forName("UTF-8");
MediaType contentType = responseBody.contentType();
if (contentType != null) {
try {
charset = contentType.charset(charset);
} catch (UnsupportedCharsetException e) {
Logger.e("");
Logger.e("Couldn't decode the response body; charset is likely malformed.");
return response;
}
}
if (contentLength != 0) {
Logger.v("--------------------------------------------開始打印返回數據----------------------------------------------------");
Logger.d(request.url());
Logger.json(buffer.clone().readString(charset));
Logger.v("--------------------------------------------結束打印返回數據----------------------------------------------------");
}
return response;
}
示例2: logv
import com.orhanobut.logger.Logger; //導入方法依賴的package包/類
public static void logv(String message, Object... args) {
if (DEBUG_ENABLE) {
Logger.v(message, args);
}
}
示例3: logw
import com.orhanobut.logger.Logger; //導入方法依賴的package包/類
public static void logw(String message, Object... args) {
if (DEBUG_ENABLE) {
Logger.v(message, args);
}
}
示例4: v
import com.orhanobut.logger.Logger; //導入方法依賴的package包/類
public static void v(String message, Object... args) {
Logger.v(message, args);
}
示例5: v
import com.orhanobut.logger.Logger; //導入方法依賴的package包/類
public static void v(String message, Object... args) {
Logger.v("response=" + message, args);
}
示例6: vr
import com.orhanobut.logger.Logger; //導入方法依賴的package包/類
public static void vr(String message, Object... args) {
if (isDebug) {
Logger.v("request=" + message, args);
}
}
示例7: v
import com.orhanobut.logger.Logger; //導入方法依賴的package包/類
@Override
public void v(String msg) {
Logger.v(msg);
}