Skip to content

Conversation

epenet
Copy link
Contributor

@epenet epenet commented Feb 23, 2024

It would be nice to be able to have the ability to write custom logger (for example to a debug window or to a shared logger)
This implementation would allow one to write a CustomLogger, which inherits the standard Logger.

  internal class CustomLogger : Logger
  {
    internal CustomLogger() { }
    protected override void Log(LogLevel logLevel, LogStatement logStatement)
    {
      //base.Log(logLevel, logStatement);
      if (logLevel >= Level)
      {
        Debug.WriteLine(logStatement.AsString(Format, LogRequestBody, LogRequestBody));
      }
    }
  }

@HemanthDogiparthi12 HemanthDogiparthi12 merged commit e65606d into purecloudlabs:master Mar 11, 2024
@epenet epenet deleted the 20240223-1350 branch March 12, 2024 07:11
@epenet
Copy link
Contributor Author

epenet commented Mar 12, 2024

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants