Interface ILambdaSharpLogger
ILambda
Namespace: LambdaSharp.Logging
Assembly: LambdaSharp.Logging.dll
Syntax
public interface ILambdaSharpLogger
Properties
DebugLoggingEnabled
The Debug
Declaration
bool DebugLoggingEnabled { get; }
Property Value
Type | Description |
---|---|
System. |
Boolean indicating if requests and responses are logged. |
Info
The Info property return information about the LambdaSharp environment.
Declaration
ILambdaSharpInfo Info { get; }
Property Value
Type | Description |
---|---|
ILambda |
The ILambda |
Methods
Log(LambdaLogLevel, Exception, String, Object[])
Log a message wit the given severity level. The format
string is used to create a unique signature for errors.
Therefore, any error information that varies between occurrences should be provided in the arguments
parameter.
Declaration
void Log(LambdaLogLevel level, Exception exception, string format, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
Lambda |
level | The severity level of the log message. See Lambda |
System. |
exception | Optional exception to log. The exception is logged with its description and stacktrace. This parameter can be |
System. |
format | Optional message to use instead of |
System. |
arguments | Optional arguments for the |
Remarks
Nothing is logged if both format
and exception
are null.
LogRecord(ALambdaLogRecord)
Log a ALambda
Declaration
void LogRecord(ALambdaLogRecord record)
Parameters
Type | Name | Description |
---|---|---|
ALambda |
record | The record to log. |