//4 public static ILogger LoadFromJson( this LoggingWizardCharms charms, JToken loggingSection, IServiceProvider serviceProvider = null ) { return(LoadFromJson <ILogger>(charms, loggingSection, serviceProvider)); }
//3 public static ILogger LoadFromJson( this LoggingWizardCharms charms, string filePath, string sectionPath, IServiceProvider serviceProvider = null ) { return(LoadFromJson <ILogger>(charms, filePath, sectionPath, serviceProvider)); }
//7 public static BackgroundLogger BackgroundSqlLogger( this LoggingWizardCharms charms, Action <SqlLogSchemaConfig> schemaApply ) { return(BackgroundSqlLogger( charms, new MinimumLogLevelVerifier(LogLevel.Debug), schemaApply )); }
//5 public static BackgroundLogger BackgroundDebugLogger( this LoggingWizardCharms charms, Action <StringLogSerializerBuilder> serializerApply ) { return(BackgroundDebugLogger( charms, new MinimumLogLevelVerifier(LogLevel.Debug), serializerApply )); }
//1 public static SqlLogger SqlLogger( this LoggingWizardCharms charms, SqlLogSchema schema, ILogRecordVerifier recordVerifier ) { return(new SqlLogger(schema) { RecordVerifier = recordVerifier }); }
//7 public static BackgroundLogger BackgroundLambdaLogger( this LoggingWizardCharms charms, Action <LogRecord> writeAction ) { return(BackgroundLambdaLogger( charms, writeAction, (Action <LogRecord[]>)null )); }
//9 public static BackgroundLogger BackgroundLambdaLogger( this LoggingWizardCharms charms, Action <LogRecord[]> batchAction ) { return(BackgroundLambdaLogger( charms, batchAction, new MinimumLogLevelVerifier(LogLevel.Debug) )); }
//6 public static ConsoleLogger ConsoleLogger( this LoggingWizardCharms charms, Action <ConsoleLogSerializerBuilder> serializerApply ) { return(ConsoleLogger( charms, new MinimumLogLevelVerifier(LogLevel.Debug), serializerApply )); }
//5 public static ConsoleLogger ConsoleLogger( this LoggingWizardCharms charms, IStringLogSerializer serializer ) { return(ConsoleLogger( charms, new MinimumLogLevelVerifier(LogLevel.Debug), serializer )); }
//8 public static BackgroundLogger BackgroundSqlLogger( this LoggingWizardCharms charms, SqlLogSchema schema ) { return(BackgroundSqlLogger( charms, schema, new MinimumLogLevelVerifier(LogLevel.Debug) )); }
//2 public static BackgroundLogger BackgroundSqlLogger( this LoggingWizardCharms charms, string connectionString, ILogRecordVerifier recordVerifier ) { return(BackgroundSqlLogger(charms, new SqlLogSchema(connectionString), recordVerifier )); }
//12 public static CompositeLogger CompositeLogger( this LoggingWizardCharms charms, params Func <LoggingWizardCharms, ILogger>[] loggerFactories ) { return(CompositeLogger( charms, LogLevel.Debug, false, loggerFactories )); }
//10 public static CompositeLogger CompositeLogger( this LoggingWizardCharms charms, params ILogger[] loggers ) { return(CompositeLogger( charms, LogLevel.Debug, false, loggers )); }
//1 public static DebugLogger DebugLogger( this LoggingWizardCharms charms, ILogRecordVerifier recordVerifier, IStringLogSerializer serializer = null ) { return(new DebugLogger { Serializer = serializer, RecordVerifier = recordVerifier }); }
//1 public static CompositeLogger CompositeLogger( this LoggingWizardCharms charms, ILogRecordVerifier recordVerifier, bool leaveOpen, params ILogger[] loggers ) { return(new CompositeLogger(loggers, leaveOpen) { RecordVerifier = recordVerifier }); }
//4 public static DebugLogger DebugLogger( this LoggingWizardCharms charms, LogLevel minLevel, Action <StringLogSerializerBuilder> serializerApply ) { return(DebugLogger( charms, new MinimumLogLevelVerifier(minLevel), serializerApply )); }
//3 public static LambdaLogger LambdaLogger( this LoggingWizardCharms charms, Action <LogRecord[]> batchAction, LogLevel minLevel ) { return(LambdaLogger( charms, batchAction, new MinimumLogLevelVerifier(minLevel) )); }
//1 public static ConsoleLogger ConsoleLogger( this LoggingWizardCharms charms, ILogRecordVerifier recordVerifier, IStringLogSerializer serializer = null ) { return(new ConsoleLogger() { Serializer = serializer, RecordVerifier = recordVerifier }); }
//6 public static SqlLogger SqlLogger( this LoggingWizardCharms charms, LogLevel minLevel, Action <SqlLogSchemaConfig> schemaApply ) { return(SqlLogger( charms, new MinimumLogLevelVerifier(minLevel), schemaApply )); }
//1 public static LambdaLogger LambdaLogger( this LoggingWizardCharms charms, Action <LogRecord> writeAction, Action <LogRecord[]> batchAction, ILogRecordVerifier recordVerifier ) { return(new LambdaLogger(writeAction, batchAction) { RecordVerifier = recordVerifier }); }
//3 public static SqlLogger SqlLogger( this LoggingWizardCharms charms, SqlLogSchema schema, LogLevel minLevel = LogLevel.Debug ) { return(SqlLogger( charms, schema, new MinimumLogLevelVerifier(minLevel) )); }
//2 public static TLogger LoadFromJson <TLogger>( this LoggingWizardCharms charms, JToken loggingSection, IServiceProvider serviceProvider = null ) where TLogger : ILogger { return((TLogger) new LoggerJsonLoader { Injector = serviceProvider }.Load(loggingSection)); }
//2 public static BackgroundLogger BackgroundDebugLogger( this LoggingWizardCharms charms, LogLevel minLevel = LogLevel.Debug, IStringLogSerializer serializer = null ) { return(BackgroundDebugLogger( charms, new MinimumLogLevelVerifier(minLevel), serializer )); }
//4 public static BackgroundLogger BackgroundSqlLogger( this LoggingWizardCharms charms, string connectionString, LogLevel minLevel = LogLevel.Debug ) { return(BackgroundSqlLogger( charms, connectionString, new MinimumLogLevelVerifier(minLevel) )); }
//4 public static BackgroundLogger BackgroundConsoleLogger( this LoggingWizardCharms charms, LogLevel minLevel, Action <ConsoleLogSerializerBuilder> serializerApply ) { return(BackgroundConsoleLogger( charms, new MinimumLogLevelVerifier(minLevel), serializerApply )); }
//9 public static CompositeLogger CompositeLogger( this LoggingWizardCharms charms, bool leaveOpen, params ILogger[] loggers ) { return(CompositeLogger( charms, LogLevel.Debug, leaveOpen, loggers )); }
//1 public static TLogger LoadFromJson <TLogger>( this LoggingWizardCharms charms, string filePath, string sectionPath, IServiceProvider serviceProvider = null ) where TLogger : ILogger { return((TLogger) new LoggerJsonLoader { Injector = serviceProvider }.Load(filePath, sectionPath)); }
//2 public static CompositeLogger CompositeLogger( this LoggingWizardCharms charms, ILogRecordVerifier recordVerifier, params ILogger[] loggers ) { return(CompositeLogger( charms, recordVerifier, false, loggers )); }
//1 public static BackgroundLogger BackgroundSqlLogger( this LoggingWizardCharms charms, SqlLogSchema schema, ILogRecordVerifier recordVerifier ) { var baseLogger = new SqlLogger(schema) { RecordVerifier = recordVerifier }; return(charms.BackgroundLogger(baseLogger)); }
//6 public static CompositeLogger CompositeLogger( this LoggingWizardCharms charms, LogLevel minLevel, params Func <LoggingWizardCharms, ILogger>[] loggerFactories ) { return(CompositeLogger( charms, new MinimumLogLevelVerifier(minLevel), false, loggerFactories )); }