diff --git a/core/lib/Thelia/Log/Tlog.php b/core/lib/Thelia/Log/Tlog.php index 1eaf64350..b8792bddb 100644 --- a/core/lib/Thelia/Log/Tlog.php +++ b/core/lib/Thelia/Log/Tlog.php @@ -124,6 +124,19 @@ class Tlog Implements LoggerInterface return self::$instance; } + /** + * Create a new Tlog instance, than t will not interfere with the "Main" instance + * + * @return Tlog a new Tlog instance + */ + public static function getNewInstance() { + $instance = new Tlog(); + + $instance->init(); + + return $instance; + } + /** * initialize default configuration */