From 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期五, 01 十一月 2024 15:11:19 +0800
Subject: [PATCH] Revert "集成获取mdm分发通用数据格式接口集成"

---
 Source/BladeX-Tool/blade-starter-http/src/main/java/org/springblade/core/http/LogLevel.java |   88 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 88 insertions(+), 0 deletions(-)

diff --git a/Source/BladeX-Tool/blade-starter-http/src/main/java/org/springblade/core/http/LogLevel.java b/Source/BladeX-Tool/blade-starter-http/src/main/java/org/springblade/core/http/LogLevel.java
new file mode 100644
index 0000000..2c7da6c
--- /dev/null
+++ b/Source/BladeX-Tool/blade-starter-http/src/main/java/org/springblade/core/http/LogLevel.java
@@ -0,0 +1,88 @@
+/*
+ *      Copyright (c) 2018-2028, DreamLu All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: DreamLu 鍗㈡槬姊� (596392912@qq.com)
+ */
+package org.springblade.core.http;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+import okhttp3.logging.HttpLoggingInterceptor;
+
+/**
+ * 鏃ュ織绾у埆
+ *
+ * @author L.cm
+ */
+@Getter
+@AllArgsConstructor
+public enum LogLevel {
+	/**
+	 * No logs.
+	 */
+	NONE(HttpLoggingInterceptor.Level.NONE),
+	/**
+	 * Logs request and response lines.
+	 *
+	 * <p>Example:
+	 * <pre>{@code
+	 * --> POST /greeting http/1.1 (3-byte body)
+	 *
+	 * <-- 200 OK (22ms, 6-byte body)
+	 * }</pre>
+	 */
+	BASIC(HttpLoggingInterceptor.Level.BASIC),
+	/**
+	 * Logs request and response lines and their respective headers.
+	 *
+	 * <p>Example:
+	 * <pre>{@code
+	 * --> POST /greeting http/1.1
+	 * Host: example.com
+	 * Content-Type: plain/text
+	 * Content-Length: 3
+	 * --> END POST
+	 *
+	 * <-- 200 OK (22ms)
+	 * Content-Type: plain/text
+	 * Content-Length: 6
+	 * <-- END HTTP
+	 * }</pre>
+	 */
+	HEADERS(HttpLoggingInterceptor.Level.HEADERS),
+	/**
+	 * Logs request and response lines and their respective headers and bodies (if present).
+	 *
+	 * <p>Example:
+	 * <pre>{@code
+	 * --> POST /greeting http/1.1
+	 * Host: example.com
+	 * Content-Type: plain/text
+	 * Content-Length: 3
+	 *
+	 * Hi?
+	 * --> END POST
+	 *
+	 * <-- 200 OK (22ms)
+	 * Content-Type: plain/text
+	 * Content-Length: 6
+	 *
+	 * Hello!
+	 * <-- END HTTP
+	 * }</pre>
+	 */
+	BODY(HttpLoggingInterceptor.Level.BODY);
+
+	private final HttpLoggingInterceptor.Level level;
+}

--
Gitblit v1.9.3