Class MySqlLogger
Provides the capability to write a log.
Inheritance
System.Object
System.MarshalByRefObject
System.IO.TextWriter
MySqlLogger
Implements
System.IAsyncDisposable
System.IDisposable
Namespace: MySql.Data.EntityFramework
Assembly: MySql.Data.EntityFramework.dll
Version: 9.1.0
Syntax
public class MySqlLogger : TextWriter, IAsyncDisposable, IDisposable
Constructors
MySqlLogger(Action<String>)
Declaration
public MySqlLogger(Action<string> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.String> | action |
Properties
Encoding
Declaration
public override Encoding Encoding { get; }
Property Value
Type | Description |
---|---|
System.Text.Encoding |
Overrides
System.IO.TextWriter.Encoding
Methods
Logger(String, Boolean)
Declaration
public static StreamWriter Logger(string logPath, bool append)
Parameters
Type | Name | Description |
---|---|---|
System.String | logPath | |
System.Boolean | append |
Returns
Type | Description |
---|---|
System.IO.StreamWriter |
Write(Char[], Int32, Int32)
Declaration
public override void Write(char[] buffer, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | buffer | |
System.Int32 | index | |
System.Int32 | count |
Overrides
System.IO.TextWriter.Write(System.Char[], System.Int32, System.Int32)
Write(String)
Declaration
public override void Write(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Overrides
System.IO.TextWriter.Write(System.String)
Implements
System.IAsyncDisposable
System.IDisposable