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
typedWriteLineDelegateAction<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
Error(string, params string[])
Writes an error message.
public void Error(string text, params string[] args)
Parameters
Information(string, params string[])
Writes an informational message.
public void Information(string text, params string[] args)
Parameters
Ordinal(string, params string[])
Writes an ordinary/normal message.
public void Ordinal(string text, params string[] args)
Parameters
Success(string, params string[])
Writes a success message.
public void Success(string text, params string[] args)
Parameters
Warning(string, params string[])
Writes a warning message.
public void Warning(string text, params string[] args)
Parameters
WriteLine(TypeOfMessageLogging, string)
Writes a message with the specified message type.
public void WriteLine(TypeOfMessageLogging messageType, string message)
Parameters
messageTypeTypeOfMessageLoggingThe type of the message.
messagestringThe 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)