Beispiel #1
0
 public static IAbstractionContext Error(this IAbstractionContext context) => context.SetItem(AbstractionProperties.LogLevel, LogLevel.Error);
Beispiel #2
0
 public static IAbstractionContext Fatal(this IAbstractionContext context) => context.SetItem(AbstractionProperties.LogLevel, LogLevel.Fatal);
Beispiel #3
0
 public static IAbstractionContext Information(this IAbstractionContext context) => context.SetItem(AbstractionProperties.LogLevel, LogLevel.Information);
Beispiel #4
0
 public static IAbstractionContext Warning(this IAbstractionContext context) => context.SetItem(AbstractionProperties.LogLevel, LogLevel.Warning);
Beispiel #5
0
 public static IAbstractionContext Debug(this IAbstractionContext context) => context.SetItem(AbstractionProperties.LogLevel, LogLevel.Debug);
Beispiel #6
0
 public static IAbstractionContext Trace(this IAbstractionContext context) => context.SetItem(AbstractionProperties.LogLevel, LogLevel.Trace);
Beispiel #7
0
 /// <summary>
 /// Sets a message that explains why something happened like Canceled a Routine or a Decision.
 /// </summary>
 public static IAbstractionContext Because(this IAbstractionContext category, string reason) => category.SetItem(AbstractionProperties.Message, reason);