Add Log Error and log Warning

This commit is contained in:
atef 2023-07-03 14:21:18 +02:00
parent 7d0dd25696
commit c0c65c2bb8
1 changed files with 12 additions and 0 deletions

View File

@ -24,4 +24,16 @@ public static class Logger
_logger.LogDebug(t.ToString()); // TODO: check warning
return t;
}
public static T LogError<T>(this T t) where T : notnull
{
_logger.LogError(t.ToString()); // TODO: check warning
return t;
}
public static T LogWarning<T>(this T t) where T : notnull
{
_logger.LogWarning(t.ToString()); // TODO: check warning
return t;
}
}