ZiggyCreatures / FusionCache

FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
MIT License
1.91k stars 97 forks source link

[FEATURE] 📜 Custom Plugins Log Levels #128

Closed jodydonetti closed 1 year ago

jodydonetti commented 1 year ago

Is your feature request related to a problem? Please describe

Currently FusionCache allows customization of a lot of different log levels to be used in different scenarios, such as for serialization errors, factory errors, factory synthetic timeouts, backplane errors, etc.

When talking about plugins though, this is not the case: every log message is either Information (for things like "a plugin has been added") or Error (for things like when an error occurred while adding a plugin, etc).

Describe the solution you'd like

Based on a request by community member @shoaibshakeel381 , FusionCache may add a couple of custom log levels, related to plugins.

In particular, 2 new options will be added in the FusionCacheOptions class:

public LogLevel PluginsInfoLogLevel { get; set; }
public LogLevel PluginsErrorsLogLevel { get; set; }

Their default values will be, respectively, LogLevel.Information and LogLevel.Error.

jodydonetti commented 1 year ago

Hi all, I just release v0.20.0-preview2 🎉

Unless some problems will came up this week, the next weekend I'll release the final v0.20.0.

jodydonetti commented 1 year ago

Hi everyone, I've finally released the new v0.20.0 🎉