使用 Electron-Log 登录 C# 类

Logging in the C# classes using Electron-Log

在我的 Asp.NET Core 3 Electron.NET 网络应用程序中,我正在使用 Electron-Log npm包进行日志记录。

我可以这样登录脚本部分:

const log = require('electron-log');

log.info('Hello, log');
log.warn('Some problem appears');

在示例应用程序中,我如何使用它从 C# 控制器或任何其他 C# log class?

Electron-Log用于记录client的日志信息。

.net core中的code behind可以参考this.