Table of Contents

Class TypedLoggerBase

Namespace
SunamoLogging.Base
Assembly
SunamoLogging.dll

Base logger class that uses typed message enums instead of plain strings. In difference with LoggerBase, this takes type of message as enum.

public abstract class TypedLoggerBase
Inheritance
TypedLoggerBase
Derived
Inherited Members
Extension Methods

Constructors

TypedLoggerBase()

Initializes a new instance of the TypedLoggerBase class with no delegate.

public TypedLoggerBase()

TypedLoggerBase(Action<TypeOfMessageLogging, string, string[]>)

Initializes a new instance of the TypedLoggerBase class.

public TypedLoggerBase(Action<TypeOfMessageLogging, string, string[]> typedWriteLineDelegate)

Parameters

typedWriteLineDelegate Action<TypeOfMessageLogging, string, string[]>

The delegate to invoke for writing log messages.

Methods

Appeal(string, params string[])

Writes an appeal/request message to the user.

public void Appeal(string text, params string[] args)

Parameters

text string

The message text.

args string[]

Format arguments.

Error(string, params string[])

Writes an error message.

public void Error(string text, params string[] args)

Parameters

text string

The message text.

args string[]

Format arguments.

Information(string, params string[])

Writes an informational message.

public void Information(string text, params string[] args)

Parameters

text string

The message text.

args string[]

Format arguments.

Ordinal(string, params string[])

Writes an ordinary/normal message.

public void Ordinal(string text, params string[] args)

Parameters

text string

The message text.

args string[]

Format arguments.

Success(string, params string[])

Writes a success message.

public void Success(string text, params string[] args)

Parameters

text string

The message text.

args string[]

Format arguments.

Warning(string, params string[])

Writes a warning message.

public void Warning(string text, params string[] args)

Parameters

text string

The message text.

args string[]

Format arguments.

WriteLine(TypeOfMessageLogging, string)

Writes a message with the specified message type.

public void WriteLine(TypeOfMessageLogging messageType, string message)

Parameters

messageType TypeOfMessageLogging

The type of the message.

message string

The message to write.

WriteLineFormat(string, params string[])

Writes a formatted line as an ordinary message. Legacy compatibility method for old applications.

public void WriteLineFormat(string format, params string[] args)

Parameters

format string

The format string.

args string[]

Format arguments.