Table of Contents

Class NeosLoggerBase

Namespace
GroupeIsa.Neos.Shared.Logging
Assembly
GroupeIsa.Neos.Shared.dll

Represents a base class for INeosLogger implementation.

public abstract class NeosLoggerBase : INeosLogger
Inheritance
NeosLoggerBase
Implements
Inherited Members

Methods

ForContext(string)

Gets a logger for a given context.

public abstract INeosLogger ForContext(string context)

Parameters

context string

The context.

Returns

INeosLogger

Logger.

ForContext(string, string)

Gets a logger for a given context.

public abstract INeosLogger ForContext(string appIdentifier, string context)

Parameters

appIdentifier string

Application identifier.

context string

The context.

Returns

INeosLogger

Logger.

ForContext<TSource>()

Gets a logger for a given context.

public abstract INeosLogger<TSource> ForContext<TSource>()

Returns

INeosLogger<TSource>

Logger.

Type Parameters

TSource

Type corresponding to the context.

LogDebug(Exception?, string)

Writes a debug event.

public void LogDebug(Exception? exception, string messageTemplate)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

LogDebug(Exception?, string, params object[])

Writes a debug event.

public abstract void LogDebug(Exception? exception, string messageTemplate, params object[] propertyValues)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogDebug(string)

Writes a debug event.

public void LogDebug(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogDebug(string, params object[])

Writes a debug event.

public void LogDebug(string messageTemplate, params object[] propertyValues)

Parameters

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogDebug<T>(Exception?, string, T)

Writes a debug event.

public abstract void LogDebug<T>(Exception? exception, string messageTemplate, T propertyValue)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogDebug<T>(string, T)

Writes a debug event.

public void LogDebug<T>(string messageTemplate, T propertyValue)

Parameters

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogError(Exception?, string)

Writes an error event.

public void LogError(Exception? exception, string messageTemplate)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

LogError(Exception?, string, params object[])

Writes an error event.

public abstract void LogError(Exception? exception, string messageTemplate, params object[] propertyValues)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogError(string)

Writes an error event.

public void LogError(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogError(string, params object[])

Writes an error event.

public void LogError(string messageTemplate, params object[] propertyValues)

Parameters

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogError<T>(Exception?, string, T)

Writes an error event.

public abstract void LogError<T>(Exception? exception, string messageTemplate, T propertyValue)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogError<T>(string, T)

Writes an error event.

public void LogError<T>(string messageTemplate, T propertyValue)

Parameters

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogFatal(Exception?, string)

Writes a fatal event.

public void LogFatal(Exception? exception, string messageTemplate)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

LogFatal(Exception?, string, params object[])

Writes a fatal event.

public abstract void LogFatal(Exception? exception, string messageTemplate, params object[] propertyValues)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValues object[]

Objets formatés dans le modèle de message.

LogFatal(string)

Writes a fatal event.

public void LogFatal(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogFatal(string, params object[])

Writes a fatal event.

public void LogFatal(string messageTemplate, params object[] propertyValues)

Parameters

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogFatal<T>(Exception?, string, T)

Writes a fatal event.

public abstract void LogFatal<T>(Exception? exception, string messageTemplate, T propertyValue)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogFatal<T>(string, T)

Writes a fatal event.

public void LogFatal<T>(string messageTemplate, T propertyValue)

Parameters

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogInformation(Exception?, string)

Writes an informational event.

public void LogInformation(Exception? exception, string messageTemplate)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

LogInformation(Exception?, string, params object[])

Writes an informational event.

public abstract void LogInformation(Exception? exception, string messageTemplate, params object[] propertyValues)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogInformation(string)

Writes an informational event.

public void LogInformation(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogInformation(string, params object[])

Writes an informational event.

public void LogInformation(string messageTemplate, params object[] propertyValues)

Parameters

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogInformation<T>(Exception?, string, T)

Writes an informational event.

public abstract void LogInformation<T>(Exception? exception, string messageTemplate, T propertyValue)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogInformation<T>(string, T)

Writes an informational event.

public void LogInformation<T>(string messageTemplate, T propertyValue)

Parameters

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogMethodCalled(string, string, int)

Writes a debug event that indicates a method call.

public void LogMethodCalled(string methodName = "", string filePath = "", int lineNumber = 0)

Parameters

methodName string

Name of the method.

filePath string

File path.

lineNumber int

Line number.

LogVerbose(Exception?, string)

Writes a verbose event.

public void LogVerbose(Exception? exception, string messageTemplate)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

LogVerbose(Exception?, string, params object[])

Writes a verbose event.

public abstract void LogVerbose(Exception? exception, string messageTemplate, params object[] propertyValues)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogVerbose(string)

Writes a verbose event.

public void LogVerbose(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogVerbose(string, params object[])

Writes a verbose event.

public void LogVerbose(string messageTemplate, params object[] propertyValues)

Parameters

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogVerbose<T>(Exception?, string, T)

Writes a verbose event.

public abstract void LogVerbose<T>(Exception? exception, string messageTemplate, T propertyValue)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogVerbose<T>(string, T)

Writes a verbose event.

public void LogVerbose<T>(string messageTemplate, T propertyValue)

Parameters

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogWarning(Exception?, string)

Writes a warning event.

public void LogWarning(Exception? exception, string messageTemplate)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

LogWarning(Exception?, string, params object[])

Writes a warning event.

public abstract void LogWarning(Exception? exception, string messageTemplate, params object[] propertyValues)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogWarning(string)

Writes a warning event.

public void LogWarning(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogWarning(string, params object[])

Writes a warning event.

public void LogWarning(string messageTemplate, params object[] propertyValues)

Parameters

messageTemplate string

Message template describing the event.

propertyValues object[]

Objects formatted in the message template.

LogWarning<T>(Exception?, string, T)

Writes a warning event.

public abstract void LogWarning<T>(Exception? exception, string messageTemplate, T propertyValue)

Parameters

exception Exception

Exception.

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

LogWarning<T>(string, T)

Writes a warning event.

public void LogWarning<T>(string messageTemplate, T propertyValue)

Parameters

messageTemplate string

Message template describing the event.

propertyValue T

Subject formatted in the message template.

Type Parameters

T

The type of the object formatted in the message template.

PushProperty(string, object, bool)

Push a property into the context, returning a IDisposable which should be used later to remove ownership.

public abstract IDisposable PushProperty(string name, object value, bool destructureObjects = false)

Parameters

name string

Name of the property.

value object

Property value.

destructureObjects bool

If true, the value will be serialized as a structured object otherwise, the object will be saved as a scalar value.

Returns

IDisposable

Logger.