1. Home
  2. Docs
  3. Documentation
  4. Plugins
  5. Server logging

Server logging

Logging is important for any application. SB comes with pre-configured logging, and ILogger or ILoggerFactory can be injected into plugins. All log entries are saved in a rolling file named default.log.

It is of course possible to use other loggers, but they require manual configuration through the Startup class.

To configure the logger, modify the appsettings.json configuration file. For more info on logger configuration, read:
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.2#configuration

The demo project has an example of logging by injecting the ILogger into the CalculatorServer plugin.

Next step: Server debugging.

Was this article helpful to you? Yes No

How can we help?