Click or drag to resize
TextWriterLogger Class
Logger that logs to an arbitrary System.IO.TextWriter.
Inheritance Hierarchy

Namespace: Grpc.Core.Logging
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 1.0.0
Syntax
public class TextWriterLogger : ILogger

The TextWriterLogger type exposes the following members.

Constructors
  NameDescription
Public methodTextWriterLogger(FuncTextWriter)
Creates a console logger not associated to any specific type and writes to a System.IO.TextWriter obtained from given provider. User is responsible for providing an instance of TextWriter that is thread-safe.
Public methodTextWriterLogger(TextWriter)
Creates a console logger not associated to any specific type and writes to given System.IO.TextWriter. User is responsible for providing an instance of TextWriter that is thread-safe.
Protected methodTextWriterLogger(FuncTextWriter, Type)
Creates a console logger that logs messsage specific for given type.
Top
Properties
  NameDescription
Protected propertyAssociatedType
Gets the type associated with this logger.
Top
Methods
  NameDescription
Public methodDebug(String)
Logs a message with severity Debug.
Public methodDebug(String, Object)
Logs a formatted message with severity Debug.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodError(String)
Logs a message with severity Error.
Public methodError(Exception, String)
Logs a message and an associated exception with severity Error.
Public methodError(String, Object)
Logs a formatted message with severity Error.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodForTypeT
Returns a logger associated with the specified type.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInfo(String)
Logs a message with severity Info.
Public methodInfo(String, Object)
Logs a formatted message with severity Info.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWarning(String)
Logs a message with severity Warning.
Public methodWarning(Exception, String)
Logs a message and an associated exception with severity Warning.
Public methodWarning(String, Object)
Logs a formatted message with severity Warning.
Top
See Also