Docs · API reference · Motus.Abstractions
IMotusLogger Interface#
Simple logging interface for Motus plugins. Keeps the abstractions package dependency-free.
public interface IMotusLogger
Methods#
Log(string) Method#
Logs an informational message.
void Log(string message);
Parameters#
message System.String
The message to log.
LogError(string, Exception) Method#
Logs an error message.
void LogError(string message, System.Exception? exception=null);
Parameters#
message System.String
The error message.
exception System.Exception
An optional exception associated with the error.
LogWarning(string) Method#
Logs a warning message.
void LogWarning(string message);
Parameters#
message System.String
The warning message.