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

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

            return(source);
        }
Esempio n. 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);
        }