Hello Experts,
As the title says, we are on Aras 31 and building some custom code in a dll, trying to understand the new way of logging in C# classes
Looking at the release notes here, there is a new way to add logs, the extract from that document
ASP.NET Core native logging mechanism (ILogger and ILoggerFactory) is available in CallContext public object. This mechanism uses server's log configuration and writes server methods logs along with other server's logs. Developers of server methods should use this mechanism for new development. Old public log API in CallContext is depracated with appropriate messages and will be removed in the future
We could not find any documentation on this, the below is the sample we tried but it does not work
CallContext CCO = ((IOMConnection)_inn.getConnection()).CCO; ILogger _logger = CCO.Logger; _logger.LogDebug("Print something");
Do we have an example on how this can be configured?
Can someone please point me in the right direction on this, thanks