Interface INeosLogger
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
contextstringThe context.
Returns
- INeosLogger
Logger.
ForContext(string, string)
Gets a logger for a given context.
INeosLogger ForContext(string appIdentifier, string context)
Parameters
Returns
- INeosLogger
Logger.
ForContext<TSource>()
Gets a logger for a given context.
INeosLogger<TSource> ForContext<TSource>()
Returns
- INeosLogger<TSource>
Logger.
Type Parameters
TSourceType corresponding to the context.
LogDebug(Exception?, string)
Writes a debug event.
void LogDebug(Exception? exception, string messageTemplate)
Parameters
LogDebug(Exception?, string, params object[])
Writes a debug event.
void LogDebug(Exception? exception, string messageTemplate, params object[] propertyValues)
Parameters
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValuesobject[]Objects formatted in the message template.
LogDebug(string)
Writes a debug event.
void LogDebug(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogDebug(string, params object[])
Writes a debug event.
void LogDebug(string messageTemplate, params object[] propertyValues)
Parameters
messageTemplatestringMessage template describing the event.
propertyValuesobject[]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
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe type of the object formatted in the message template.
LogError(Exception?, string)
Writes an error event.
void LogError(Exception? exception, string messageTemplate)
Parameters
LogError(Exception?, string, params object[])
Writes an error event.
void LogError(Exception? exception, string messageTemplate, params object[] propertyValues)
Parameters
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValuesobject[]Objects formatted in the message template.
LogError(string)
Writes an error event.
void LogError(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogError(string, params object[])
Writes an error event.
void LogError(string messageTemplate, params object[] propertyValues)
Parameters
messageTemplatestringMessage template describing the event.
propertyValuesobject[]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
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe type of the object formatted in the message template.
LogFatal(Exception?, string)
Writes a fatal event.
void LogFatal(Exception? exception, string messageTemplate)
Parameters
LogFatal(Exception?, string, params object[])
Writes a fatal event.
void LogFatal(Exception? exception, string messageTemplate, params object[] propertyValues)
Parameters
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValuesobject[]Objets formatés dans le modèle de message.
LogFatal(string)
Writes a fatal event.
void LogFatal(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogFatal(string, params object[])
Writes a fatal event.
void LogFatal(string messageTemplate, params object[] propertyValues)
Parameters
messageTemplatestringMessage template describing the event.
propertyValuesobject[]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
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe type of the object formatted in the message template.
LogInformation(Exception?, string)
Writes an informational event.
void LogInformation(Exception? exception, string messageTemplate)
Parameters
LogInformation(Exception?, string, params object[])
Writes an informational event.
void LogInformation(Exception? exception, string messageTemplate, params object[] propertyValues)
Parameters
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValuesobject[]Objects formatted in the message template.
LogInformation(string)
Writes an informational event.
void LogInformation(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogInformation(string, params object[])
Writes an informational event.
void LogInformation(string messageTemplate, params object[] propertyValues)
Parameters
messageTemplatestringMessage template describing the event.
propertyValuesobject[]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
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
LogVerbose(Exception?, string)
Writes a verbose event.
void LogVerbose(Exception? exception, string messageTemplate)
Parameters
LogVerbose(Exception?, string, params object[])
Writes a verbose event.
void LogVerbose(Exception? exception, string messageTemplate, params object[] propertyValues)
Parameters
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValuesobject[]Objects formatted in the message template.
LogVerbose(string)
Writes a verbose event.
void LogVerbose(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogVerbose(string, params object[])
Writes a verbose event.
void LogVerbose(string messageTemplate, params object[] propertyValues)
Parameters
messageTemplatestringMessage template describing the event.
propertyValuesobject[]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
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe type of the object formatted in the message template.
LogWarning(Exception?, string)
Writes a warning event.
void LogWarning(Exception? exception, string messageTemplate)
Parameters
LogWarning(Exception?, string, params object[])
Writes a warning event.
void LogWarning(Exception? exception, string messageTemplate, params object[] propertyValues)
Parameters
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValuesobject[]Objects formatted in the message template.
LogWarning(string)
Writes a warning event.
void LogWarning(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogWarning(string, params object[])
Writes a warning event.
void LogWarning(string messageTemplate, params object[] propertyValues)
Parameters
messageTemplatestringMessage template describing the event.
propertyValuesobject[]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
exceptionExceptionException.
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
messageTemplatestringMessage template describing the event.
propertyValueTSubject formatted in the message template.
Type Parameters
TThe 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
namestringName of the property.
valueobjectProperty value.
destructureObjectsboolIf true, the value will be serialized as a structured object otherwise, the object will be saved as a scalar value.
Returns
- IDisposable
Logger.