Remove //rtc_base:logging from public deps

Bug: webrtc:8603
Change-Id: I2704da8618f88032adac7ae9eb2a0f47fce4a836
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/257908
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Auto-Submit: Florent Castelli <orphis@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36443}
diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn
index a1fa72a..84a919d 100644
--- a/rtc_base/BUILD.gn
+++ b/rtc_base/BUILD.gn
@@ -82,6 +82,7 @@
   deps = [
     ":atomicops",
     ":checks",
+    ":logging",
     ":rtc_task_queue",
     ":safe_compare",
     ":type_traits",
@@ -173,7 +174,6 @@
   }
 
   public_deps += [  # no-presubmit-check TODO(webrtc:8603)
-    ":logging",
     ":macromagic",
     ":platform_thread",
     ":platform_thread_types",
@@ -908,6 +908,7 @@
 
     deps = [
       ":checks",
+      ":logging",
       ":macromagic",
       ":rtc_base_approved",
     ]
@@ -933,6 +934,7 @@
     ":async_socket",
     ":checks",
     ":ip_address",
+    ":logging",
     ":network_constants",
     ":null_socket_server",
     ":rtc_task_queue",
@@ -1225,6 +1227,7 @@
     ":async_socket",
     ":checks",
     ":ip_address",
+    ":logging",
     ":rtc_base",
     ":socket",
     ":socket_address",
@@ -1321,6 +1324,7 @@
         ":checks",
         ":gunit_helpers",
         ":ip_address",
+        ":logging",
         ":net_helpers",
         ":null_socket_server",
         ":rtc_base",
@@ -1401,6 +1405,7 @@
         ":divide_round",
         ":gunit_helpers",
         ":ip_address",
+        ":logging",
         ":null_socket_server",
         ":rate_limiter",
         ":rtc_base",
@@ -1537,6 +1542,7 @@
         ":checks",
         ":gunit_helpers",
         ":ip_address",
+        ":logging",
         ":net_helpers",
         ":null_socket_server",
         ":rtc_base_tests_utils",