Class NeosLoggerBase
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
contextstringThe context.
Returns
- INeosLogger
Logger.
ForContext(string, string)
Gets a logger for a given context.
public abstract INeosLogger ForContext(string appIdentifier, string context)
Parameters
Returns
- INeosLogger
Logger.
ForContext<TSource>()
Gets a logger for a given context.
public abstract INeosLogger<TSource> ForContext<TSource>()
Returns
- INeosLogger<TSource>
Logger.
Type Parameters
TSourceType corresponding to the context.
LogDebug(Exception?, string)
Writes a debug event.
public void LogDebug(Exception? exception, string messageTemplate)
Parameters
LogDebug(Exception?, string, params object[])
Writes a debug event.
public abstract 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.
public void LogDebug(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogDebug(string, params object[])
Writes a debug event.
public 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.
public abstract 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.
public 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.
public void LogError(Exception? exception, string messageTemplate)
Parameters
LogError(Exception?, string, params object[])
Writes an error event.
public abstract 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.
public void LogError(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogError(string, params object[])
Writes an error event.
public 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.
public abstract 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.
public 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.
public void LogFatal(Exception? exception, string messageTemplate)
Parameters
LogFatal(Exception?, string, params object[])
Writes a fatal event.
public abstract 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.
public void LogFatal(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogFatal(string, params object[])
Writes a fatal event.
public 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.
public abstract 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.
public 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.
public void LogInformation(Exception? exception, string messageTemplate)
Parameters
LogInformation(Exception?, string, params object[])
Writes an informational event.
public abstract 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.
public void LogInformation(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogInformation(string, params object[])
Writes an informational event.
public 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.
public abstract 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.
public 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.
public void LogMethodCalled(string methodName = "", string filePath = "", int lineNumber = 0)
Parameters
LogVerbose(Exception?, string)
Writes a verbose event.
public void LogVerbose(Exception? exception, string messageTemplate)
Parameters
LogVerbose(Exception?, string, params object[])
Writes a verbose event.
public abstract 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.
public void LogVerbose(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogVerbose(string, params object[])
Writes a verbose event.
public 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.
public abstract 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.
public 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.
public void LogWarning(Exception? exception, string messageTemplate)
Parameters
LogWarning(Exception?, string, params object[])
Writes a warning event.
public abstract 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.
public void LogWarning(string messageTemplate)
Parameters
messageTemplatestringMessage template describing the event.
LogWarning(string, params object[])
Writes a warning event.
public 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.
public abstract 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.
public 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.
public abstract 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.