How to connect to the UiPath NLog logger instance from .NET .dll

Hello folks!

I am trying to get UiPath Logger instance from the .NET .dll to produce some logs into the Output panel.
Currently I am using something loke this:
Logger logger = NLog.LogManager.GetLogger(“LoggerName”); //Logger Name - > From NLog.config.
I know that I can use Console.WriteLine to produce Info logs, but I need the Warning/Trace/Error LogLevels here.

Could you give me an advice on how to do that?

Hi, did you find a solution for this?