When using Clabverter as a Golang module, we need to use the MustNewClabverter() function to create a new clabverter instance.
The functions calls MustRegisterAndGetLogger() that panics if a logging instance of clabverter already exists.
This PR patches the MustNewClabverter by checking if the logging instance already exists. If so, it get destroyed and recreated.
Hi,
When using Clabverter as a Golang module, we need to use the
MustNewClabverter()
function to create a new clabverter instance. The functions callsMustRegisterAndGetLogger()
that panics if a logging instance of clabverter already exists.This PR patches the
MustNewClabverter
by checking if the logging instance already exists. If so, it get destroyed and recreated.