Add Log Error and log Warning
This commit is contained in:
parent
7d0dd25696
commit
c0c65c2bb8
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue