View on GitHub

Modular Tool Manager

Modular program based on plugins to run scripts, binaries or any kind of file from a UI.

IPluginLoggerService

This service does allow you to log information to the application log. The service does provide the following methods.

public interface IPluginLoggerService<T>
{
    void Log(LogSeverity logSeverity, string format, params string[] parameter);
    void LogTrace(string format, params string[] parameter);
    void LogDebug(string format, params string[] parameter);
    void LogInformation(string format, params string[] parameter);
    void LogWarning(string format, params string[] parameter);
    void LogError(string format, params string[] parameter);
    void LogFatalError(string format, params string[] parameter);
}

See the interface for more information

How to use it

This can be used like every other logging framework. To log a debug message inject the service and use the following snippet to use it.

:information_source: Service was injected as loggingService

loggingService?.LogDebug($"Execute plugin with path attribute '{variable}' including the following parameters '{variable2}'");

Other services

Also check out the other injectable services