Beispiel #1
0
        public static PipeLogger <TLogger> UseDefaultWriterPipe <TLogger>(this PipeLogger <TLogger> source)
            where TLogger : class, ILogger
        {
            source.Pipes.Add(PipeLogger <TLogger> .LogWriterPipe);

            return(source);
        }
Beispiel #2
0
        public static PipeLogger <TLogger> ClearPipes <TLogger>(this PipeLogger <TLogger> source)
            where TLogger : class, ILogger
        {
            source.Pipes.Clear();

            return(source);
        }
Beispiel #3
0
        public static PipeLogger <TLogger> UsePipes <TLogger>(
            this PipeLogger <TLogger> source,
            params Action <PipeLoggerContext <TLogger>, Action <PipeLoggerContext <TLogger> > >[] collection
            )
            where TLogger : class, ILogger
        {
            source.Pipes.AddRange(collection);

            return(source);
        }