Table of Contents

Interface INeosLogger

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

Specifies the functionalities of a Neos logger.

public interface INeosLogger

Methods

ForContext(string)

Gets a logger for a given context.

INeosLogger ForContext(string context)

Parameters

context string

The context.

Returns

INeosLogger

Logger.

ForContext(string, string)

Gets a logger for a given context.

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.

INeosLogger<TSource> ForContext<TSource>()

Returns

INeosLogger<TSource>

Logger.

Type Parameters

TSource

Type corresponding to the context.

LogDebug(Exception?, string)

Writes a debug event.

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.

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.

void LogDebug(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogDebug(string, params object[])

Writes a debug event.

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.

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.

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.

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.

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.

void LogError(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogError(string, params object[])

Writes an error event.

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.

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.

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.

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.

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.

void LogFatal(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogFatal(string, params object[])

Writes a fatal event.

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.

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.

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.

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.

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.

void LogInformation(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogInformation(string, params object[])

Writes an informational event.

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.

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.

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.

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.

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.

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.

void LogVerbose(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogVerbose(string, params object[])

Writes a verbose event.

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.

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.

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.

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.

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.

void LogWarning(string messageTemplate)

Parameters

messageTemplate string

Message template describing the event.

LogWarning(string, params object[])

Writes a warning event.

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.

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.

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.

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.