예제 #1
0
 public static void LogItemNotFoundHandled <TItem>(
     this ILogger logger,
     string id,
     string partitionKey,
     CosmosException e) where TItem : IItem =>
 LoggerMessageDefinitions.ItemNotFoundHandled(logger, typeof(TItem).Name, id, partitionKey, e);
예제 #2
0
 public static void LogQueryExecuted <TItem>(
     this ILogger logger,
     IQueryable <TItem> queryable,
     double charge) where TItem : IItem =>
 LoggerMessageDefinitions.QueryExecuted(logger, typeof(TItem).Name, charge, queryable.ToString(), null !);
예제 #3
0
 //Info Logger Extensions
 public static void LogPointReadStarted <TItem>(
     this ILogger logger,
     string id,
     string partitionKey) where TItem : IItem =>
 LoggerMessageDefinitions.PointReadStarted(logger, typeof(TItem).Name, id, partitionKey, null !);
예제 #4
0
 public static void LogPointReadExecuted <TItem>(
     this ILogger logger,
     double ruCharge) where TItem : IItem =>
 LoggerMessageDefinitions.PointReadExecuted(logger, typeof(TItem).Name, ruCharge, null !);
예제 #5
0
 //Debug Logger Extensions
 public static void LogItemRead <TItem>(
     this ILogger logger,
     TItem item) where TItem : IItem =>
 LoggerMessageDefinitions.ItemRead(logger, JsonConvert.SerializeObject(item), null !);