Table of Contents

Class TypedLoggerBaseCl

Namespace
SunamoCl._public.SunamoLogging.Base
Assembly
SunamoCl.dll

Base class for typed loggers that accept message type as enum, unlike LoggerBase which uses plain strings.

public abstract class TypedLoggerBaseCl
Inheritance
TypedLoggerBaseCl
Derived
Inherited Members
Extension Methods

Constructors

TypedLoggerBaseCl()

Initializes a new instance with no write delegate (for non-debug builds)

public TypedLoggerBaseCl()

TypedLoggerBaseCl(Action<TypeOfMessageCl, string, string[]>)

Initializes a new instance with the specified typed write delegate

public TypedLoggerBaseCl(Action<TypeOfMessageCl, string, string[]> typedWriteLineDelegate)

Parameters

typedWriteLineDelegate Action<TypeOfMessageCl, string, string[]>

Delegate that writes messages with a message type, text and arguments

Methods

Appeal(string, params string[])

Writes an appeal message to the output

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

Parameters

text string

Message text, can contain format placeholders

args string[]

Format arguments for the text

Error(string, params string[])

Writes an error message to the output

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

Parameters

text string

Message text, can contain format placeholders

args string[]

Format arguments for the text

Information(string, params string[])

Writes an informational message to the output

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

Parameters

text string

Message text, can contain format placeholders

args string[]

Format arguments for the text

Ordinal(string, params string[])

Writes an ordinal message to the output

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

Parameters

text string

Message text, can contain format placeholders

args string[]

Format arguments for the text

Success(string, params string[])

Writes a success message to the output

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

Parameters

text string

Message text, can contain format placeholders

args string[]

Format arguments for the text

Warning(string, params string[])

Writes a warning message to the output

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

Parameters

text string

Message text, can contain format placeholders

args string[]

Format arguments for the text

WriteLine(TypeOfMessageCl, string)

Writes a message of the specified type by routing to the appropriate typed method

public void WriteLine(TypeOfMessageCl messageType, string message)

Parameters

messageType TypeOfMessageCl

Type of message determining how it will be displayed

message string

Message text to write

WriteLineFormat(string, params string[])

Writes a formatted line as an ordinal message

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

Parameters

formatString string

Format string for the message

args string[]

Arguments for the format string