Class CloudLogger
Meadow.Cloud logging
Assembly: Meadow.LogProviders.dll
View Source
Declaration
public class CloudLogger : ILogProvider
Implements:
Meadow.Logging.ILogProvider
Properties
MinLevel
Current minimum level for the CloudLogger
View Source
Declaration
public LogLevel MinLevel { get; protected set; }
Methods
Log(LogLevel, string, string?)
Called when the associated Logger has a message call
View Source
Declaration
public void Log(LogLevel level, string message, string? _)
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Logging.LogLevel | level | The LogLevel for the message |
System.String | message | The message to log |
System.String | _ |
LogException(Exception)
Log an exception.
View Source
Declaration
public void LogException(Exception ex)
Parameters
| Type | Name |
|---|---|
System.Exception | ex |
LogEvent(int, string, Dictionary<string, object>)
Log an event.
View Source
Declaration
public void LogEvent(int eventId, string description, Dictionary<string, object> measurements)
Parameters
| Type | Name | Description |
|---|---|---|
System.Int32 | eventId | id used for a set of events. |
System.String | description | Description of the event. |
System.Collections.Generic.Dictionary<System.String,System.Object> | measurements | Dynamic payload of measurements to be recorded. |