From c059dba73cd94a2842d6b8c252d3d70af11db3d8 Mon Sep 17 00:00:00 2001
From: Bart Jaskulski <bjaskulski@protonmail.com>
Date: Fri, 9 Aug 2024 08:30:49 +0200
Subject: [PATCH] feat: deprecate `WPDeskLoggerFactory`

Mentioned logger uses a shared log file across each library client,
which results in centralized log, impossible to split and with tendency
to grow multiple gigabytes in end users' environments.

Instead, prefer `SimpleLoggerFactory`, making use of WooCommerce logger,
which by default features file per channel, log rotation and important
security checks.

Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com>
---
 src/WPDeskLoggerFactory.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/WPDeskLoggerFactory.php b/src/WPDeskLoggerFactory.php
index 6b39b9c..4f56acb 100644
--- a/src/WPDeskLoggerFactory.php
+++ b/src/WPDeskLoggerFactory.php
@@ -16,6 +16,8 @@ use WPDesk\Logger\WP\WPCapture;
 /**
  * Manages and facilitates creation of logger
  *
+ * @deprecated 1.13.0 Creates shared log file, which is discouraged. Prefer using {@see SimpleLoggerFactory}.
+ *
  * @package WPDesk\Logger
  */
 class WPDeskLoggerFactory extends BasicLoggerFactory
-- 
GitLab