Class AMNetLogger
Default logger that writes through the SSH runtime logging backend.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Logging
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetLogger : IAMNetLogger
Constructors
| Edit this page View SourceAMNetLogger(Type, LogLevel)
Creates a logger for the supplied source type.
Declaration
public AMNetLogger(Type type, AMNetLogger.LogLevel logLevel = LogLevel.Info)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The source type used as the logger name. |
| AMNetLogger.LogLevel | logLevel | The default log level. |
Methods
| Edit this page View SourceDebug(string, Exception?)
Writes a debug log message.
Declaration
public void Debug(string message, Exception? ex = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to write. |
| Exception | ex | Optional exception details. |
Error(string, Exception?)
Writes an error log message.
Declaration
public void Error(string message, Exception? ex = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to write. |
| Exception | ex | Optional exception details. |
Info(string)
Writes an informational log message.
Declaration
public void Info(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to write. |
Trace(string, Exception?)
Writes a trace log message.
Declaration
public void Trace(string message, Exception? ex = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to write. |
| Exception | ex | Optional exception details. |
Warn(string, Exception?)
Writes a warning log message.
Declaration
public void Warn(string message, Exception? ex = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message to write. |
| Exception | ex | Optional exception details. |