Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 651 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 651 Bytes

Redis-PubSub-Logger

Simple .Net Core Redis Logger Extension

Usage;

  public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
        {
            
            loggerFactory.AddProvider(new RedisPubSubLoggerProvider(
                                      new RedisPubSubLoggerConfiguration
                                      {                                         
                                          RedisConnectionString= "xxx.xxxx.xxx.xxx:6379",
                                          RedisLogChannel = "logger"
                                      }));           
        }