Class LoggerMessages
Source-generated log messages of the cache context.
public static class LoggerMessages
- Inheritance
-
LoggerMessages
- Inherited Members
Methods
LogCacheIsAlreadyInitialized(ILogger, string, string)
Logs (event 9013, Warning) that a distributed cache is already initialized.
[LoggerMessage(EventId = 9013, Level = LogLevel.Warning, Message = "{CacheKind} Cache {Store} is already initialized.")]
public static void LogCacheIsAlreadyInitialized(this ILogger logger, string cacheKind, string store)
Parameters
loggerILoggerThe logger.
cacheKindstringThe kind of the cache.
storestringThe name of the cache.
LogCacheIsInitialized(ILogger, string, string)
Logs (event 9014, Information) that a distributed cache is initialized.
[LoggerMessage(EventId = 9014, Level = LogLevel.Information, Message = "{CacheKind} caching for store {Store} is initialized.")]
public static void LogCacheIsInitialized(this ILogger logger, string cacheKind, string store)
Parameters
loggerILoggerThe logger.
cacheKindstringThe kind of the cache.
storestringThe name of the cache.
LogCacheKindIssue(ILogger, string)
Logs (event 9012, Error) that no ICache can be resolved for the given kind.
[LoggerMessage(EventId = 9012, Level = LogLevel.Error, Message = "Cannot resolve an ICache instance with the name: {CacheKind}")]
public static void LogCacheKindIssue(this ILogger logger, string cacheKind)
Parameters
LogNewCache(ILogger, string, string)
Logs (event 9010, Trace) that a cache of the given kind and name has been instantiated.
[LoggerMessage(EventId = 9010, Level = LogLevel.Trace, Message = "Instantiate a new instance of a cache with a kind of {cacheKind} and named {cacheName}.")]
public static void LogNewCache(this ILogger logger, string cacheKind, string cacheName)
Parameters
loggerILoggerThe logger.
cacheKindstringThe kind of the cache.
cacheNamestringThe name of the cache.
LogRegisterNewCache(ILogger, string, string)
Logs (event 9011, Information) that a cache of the given kind and name has been registered to be initialized later.
[LoggerMessage(EventId = 9011, Level = LogLevel.Information, Message = "Register a cache with a kind of {CacheKind} and named {CacheName} for later.")]
public static void LogRegisterNewCache(this ILogger logger, string cacheKind, string cacheName)
Parameters
loggerILoggerThe logger.
cacheKindstringThe kind of the cache.
cacheNamestringThe name of the cache.
LogSerializerNotResolved(ILogger, string, string)
Logs (event 9015, Error) that no IObjectSerialization can be resolved for a distributed cache.
[LoggerMessage(EventId = 9015, Level = LogLevel.Error, Message = "{CacheKind} Cache {Store} is not initialized. An IObjectSerialization instance cannot be resolved via the Ioc.")]
public static void LogSerializerNotResolved(this ILogger logger, string cacheKind, string store)