C# Class WebApplications.Utilities.Logging.Loggers.TextWriterLogger

Allows logging to a TextWriter.
Inheritance: LoggerBase
Mostra file Open project: webappsuk/CoreLibraries

Private Properties

Property Type Description

Public Methods

Method Description
Add ( IEnumerable logs, CancellationToken token = default(CancellationToken) ) : Task

Adds the specified logs to storage in batches.

TextWriterLogger ( [ name, [ writer, [ format = null, LoggingLevels validLevels = LoggingLevels.All ) : System

Initializes a new instance of the TraceLogger class.

Protected Methods

Method Description
TextWriterLogger ( [ name, [ writer, [ format, bool allowMultiple, LoggingLevels validLevels ) : System

Initializes a new instance of the TextWriterLogger class.

Method Details

Add() public method

Adds the specified logs to storage in batches.
public Add ( IEnumerable logs, CancellationToken token = default(CancellationToken) ) : Task
logs IEnumerable The logs to add to storage.
token System.Threading.CancellationToken The token.
return Task

TextWriterLogger() public method

Initializes a new instance of the TraceLogger class.
public TextWriterLogger ( [ name, [ writer, [ format = null, LoggingLevels validLevels = LoggingLevels.All ) : System
name [ The logger name.
writer [ The writer.
format [ The format.
validLevels LoggingLevels The valid log levels.
return System

TextWriterLogger() protected method

Initializes a new instance of the TextWriterLogger class.
protected TextWriterLogger ( [ name, [ writer, [ format, bool allowMultiple, LoggingLevels validLevels ) : System
name [ The logger name.
writer [ The writer.
format [ The format.
allowMultiple bool if set to the logger supports multiple instances.
validLevels LoggingLevels The valid log levels.
return System